Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: CGI Error Handling

by Lucky (Scribe)
on Dec 10, 2001 at 16:48 UTC ( #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';


Comment on Re: CGI Error Handling
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2014-08-23 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (178 votes), past polls