Hi:
Two issues. First this code works fine in my first accessed CGI script. I have it in other scripts which I am trying to debug and they return nothing so I assume they are failing compile. If this executes before compile, should it not report the compile errors?
Second question: I want a blank line between each reporting line: This print LOG $blank . "\n"; does not work??
Thanks
#Error Handling BEGIN { my $blank = " "; require 5.004; use CGI::Carp qw(fatalsToBrowser carpout); my $logfile = '/home/jalamior/public_html/httpsdocs/cgi-bin/logs/error +Log/errorFile.log'; open LOG, ">>$logfile" or die "Couldn't append to $logfile: $!\n"; carpout(\*LOG); print LOG $blank . "\n"; };
In reply to Error Log Files by tultalk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |