in reply to Re: Re: Forgetting your good education
in thread Writing a perl quiz. Need advice.

Yes, but not everyone has access to their webserver's error log file... (think accounts on most hosting providers)

  • Comment on Re: Re: Re: Forgetting your good education

Replies are listed 'Best First'.
Re: Re: Re: Re: Forgetting your good education
by bart (Canon) on Mar 09, 2003 at 12:30 UTC
    Then create your own logfile. Something like:
    BEGIN { open STDERR, ">>/home/myowndir/errorlogs.txt"; }
      Or to keep the nice CGI::Carp formatting for logged errors:
      BEGIN { use CGI::Carp qw(carpout); my $fn = "/home/joeschmoe/logs/foo_log"; open my $fh, ">>", $fn or die "Unable to open $fn for appending: $!\n"; carpout($fh); }

      Makeshifts last the longest.