It returns a 500 Internal Server Error. I have no way of checking the error logs on this particular site and the server apparently does not have CGI::Carp installed (and I'd like to avoid installing it manually). I'm using a site on godaddy's server, Perl version 5.6. If I change the third line above to simply localtime(time) there's no problem. The script runs without errors. Anybody have an idea as to what's going on?my $yesterday = time(); $yesterday = $yesterday - 86400; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($ +yesterday);
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
In reply to CGI script choking on localtime function call by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |