[ILUG] moan about perl & php
John P . Looney
valen at tuatha.org
Thu Sep 28 13:22:11 IST 2000
I've been using them both a good bit lately. First time ever using them,
really, for a proper project.
And their syntax error reporting leaves a lot to be desired. PHP's the
worst. Leave out a semi colon, and that whole block of PHP doesn't output
anything. Leave out a $ before a variable (which, when programming in TCL,
the same thing can happen. Do both, and Gaia help you. If it doesn't
printout *anything* it should at least tell me why. And line numbers rock.
I spent *ages* tracking down this little beauty in Perl:
&do_action($action[$cntr]), " - To hdr matches $tmp";
For some reason, some print outs were blank. Took me ages to notice that
it should be:
&do_action($action[$cntr], " - To hdr matches $tmp");
No syntax error, nothing. Ah!
The words of the unwary are apt to cause needless pain and bloody violence.
- Zen Master Greg
More information about the ILUG