[ILUG] moan about perl & php

Fergal Daly fergal at esatclear.ie
Thu Sep 28 14:13:42 IST 2000


On Thu, Sep 28, 2000 at 01:22:10PM +0100, John P . Looney wrote:
>  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!

It's not a syntax error, and it wouldn't be one in C either (if you drop the
&), comma is an operator in bother languages. As someone else said, -w is
what you want. Perl 5.6 gives lots of control over warnings, try

man perllexwarn

As for making errors appear in the browser try

use CGI::Carp qw(fatalsToBrowser);

at the top of the offending scripts,

Fergal 




More information about the ILUG mailing list