I just finished finding a _tiny_ bug in my code that took a long time.
I had something like this:
[$ while ($id, $name, $status_id) = $sth->fetchrow_array $]
<tr>
<td>[+ $id +]</td>
[$ if ($status_id == 7) $]
<id>just some normal text</td>
[$ else $]
<id>[+bar +}</td>
[$ endif $]
<td>[+ $name +]</td>
</tr>
[$ endwhile $]
See the mismatched [+ +} bracket... it took me serveral hours to find that
one... I use strict all the time, but this gave no errors.
What do we call this? mis-feature? feature? bug? me not understanding how
embperl works?
Regards,
Wim Kerkhoff, Software Engineer
NetMaster Networking Solutions
wim@netmaster.com
I had something like this:
[$ while ($id, $name, $status_id) = $sth->fetchrow_array $]
<tr>
<td>[+ $id +]</td>
[$ if ($status_id == 7) $]
<id>just some normal text</td>
[$ else $]
<id>[+bar +}</td>
[$ endif $]
<td>[+ $name +]</td>
</tr>
[$ endwhile $]
See the mismatched [+ +} bracket... it took me serveral hours to find that
one... I use strict all the time, but this gave no errors.
What do we call this? mis-feature? feature? bug? me not understanding how
embperl works?
Regards,
Wim Kerkhoff, Software Engineer
NetMaster Networking Solutions
wim@netmaster.com