Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: CGI Error Handling

by Lucky (Scribe)
on Dec 10, 2001 at 16:48 UTC ( [id://130644]=note: print w/replies, xml ) Need Help??


in reply to CGI Error Handling

There is one useful package in Perl standard library - CGI::Carp.
It will help you to redirect ALL errors and warnings to your own log file.
BEGIN{ use CGI::Carp qw(carpout); open LOG, $logfile or die "Couldn't open log file: $!"; carpout(LOG); }
see also 'man CGI::Carp';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://130644]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-03-19 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found