in reply to Perl Strict 502 Error No DEBUG SUPPORT
Strictly to add tools to your web debugging set -- a way to capture your Perl errors when running stuff on a remote web server where you might not have easy access to web logs, you could use evalto write them to a log file (which usually lands by default in your cgi directory but you'll have to sort that one out yourself).
#!/usr/bin/perl use strict; eval { [... do stuff ...] } ; # End eval{} error trap set REQUIRES a semicolon if ($@) { my $dsperr = $@; my $logsse = time; open ERRLOG, '>>', 'myerror.log'; print ERRLOG "$logsse $dsperr\n"; close ERRLOG; } exit;
|
|---|