The above code should take care of not being able to access the error log by providing you with your own.#!/usr/bin/perl -w BEGIN {#outputs al errors to $logfile my $logfile = "logfile.log"; use CGI::Carp qw(carpout); open(LOG, ">$logfile") or die "Unable to write to $logfile: $!"; carpout(*LOG); }#
The above code error log will overwrite ( > ) the log each time your cgi is run. If you want to append just add another > (open ( LOG, ">>$logfile" ) ).
However you're still using sprite, and like athomason and merlyn suggested in your previoius post sprite is ancient and there's better solutions.
"cRaZy is co01, but sometimes cRaZy is cRaZy".
- crazyinsomniac
In reply to (crazyinsomniac) RE: Perl to CGI
by crazyinsomniac
in thread Perl to CGI
by She-wolf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |