tultalk has asked for the wisdom of the Perl Monks concerning the following question:
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"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error Log Files
by choroba (Cardinal) on Mar 07, 2017 at 14:35 UTC | |
by tultalk (Monk) on Mar 07, 2017 at 15:15 UTC | |
by 1nickt (Canon) on Mar 07, 2017 at 15:41 UTC | |
by tultalk (Monk) on Mar 07, 2017 at 17:14 UTC | |
by tultalk (Monk) on Mar 07, 2017 at 15:25 UTC | |
|
Re: Error Log Files
by 1nickt (Canon) on Mar 07, 2017 at 14:38 UTC | |
by tultalk (Monk) on Mar 07, 2017 at 15:00 UTC |