Graeme St. Clair wrote:
In accordance with The Rules, I added use strict & use warnings to a script
invoked from a browser page on the same machine. Last time I did this, as
soon as I used the browser page, Apache 'error.log' promptly showed scads of
msgs along the lines of '[Wed Dec 08 11:03:52 2004] [error] [client
###.###.###.###] Global symbol "$dbh" requires explicit package name at
c:\PROGRA~1\...\###.pl line 358.' This time, all that happened was that the
browser (IE, alas) walloped off into a loop (maybe) and nothing new ever
came up in the new frame, although there did seem to be disk activity.
I eventually elicited a list of error msgs by just flat out compiling the
thing from the Windows cmd line, but is there something more intelligent I
could have done to force out some diagnostics on the Apache log?
use CGI::Carp qw( fatalsToBrowser );
See `perldoc CGI::Carp`
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>