in reply to Perl to CGI
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Perl to CGI
by She-wolf (Sexton) on Aug 17, 2000 at 23:56 UTC | |
by MadraghRua (Vicar) on Aug 19, 2000 at 01:29 UTC | |
by tilly (Archbishop) on Aug 19, 2000 at 01:38 UTC | |
|
RE: RE: Perl to CGI
by She-wolf (Sexton) on Aug 18, 2000 at 18:58 UTC | |
by bastard (Hermit) on Aug 18, 2000 at 21:52 UTC |