I'm stumped. I've got a script with the following three lines in it:
my $yesterday = time();
$yesterday = $yesterday - 86400;
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($
+yesterday);
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?