nysus has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI script choking on localtime function call
by rhesa (Vicar) on Feb 16, 2006 at 04:40 UTC | |
by nysus (Parson) on Feb 16, 2006 at 04:48 UTC |