Nifty stuff!# Send warn/die messages to a separate log file BEGIN { use CGI::Carp qw(carpout); open(LOG, ">>/usr/local/cgi-logs/mycgi-log") or die("Unable to open mycgi-log: $!\n"); carpout(LOG); } # Or, normal fatalsToBrowser behavior but catch warnings also use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use CGI qw(:standard); print header(); warningsToBrowser(1); # enable warnings to browser
In reply to Re: Re: Running with warnings on a remote server
by Fastolfe
in thread Running with warnings on a remote server
by Elliott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |