in reply to Re^2: use CGI::Carp qw(fatalsToBrowser); (is compile-time)
in thread use CGI::Carp qw(fatalsToBrowser);
A little experimentation reveals that perl throws syntax errors even before compilation really begins (or, at least before BEGIN blocks. This is implied in the Camel, where it says that "the Perl compiler reads through your entire program source before execution start." I guess when they say that BEGIN blocks execute as soon as possible they mean AFTER a syntax check, 'cause before that, it isn't possible. :-)
I guess this makes sense... if perl can't parse the program it has to give up without executing anything... but it does make catching syntax errors in a CGI environment (no error-log, FTP only) problematic. I guess the alternative is to install Perl on your local machine and do all your syntax checks locally.
Gary Blackburn
Trained Killer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: use CGI::Carp qw(fatalsToBrowser); (is compile-time)
by tye (Sage) on Apr 09, 2003 at 18:59 UTC | |
by Trimbach (Curate) on Apr 09, 2003 at 19:55 UTC | |
by tye (Sage) on Apr 10, 2003 at 16:02 UTC | |
by Trimbach (Curate) on Apr 10, 2003 at 17:45 UTC |