It's possible that the environment on your new server is different enough that the program fails. Try running this:
#! perl
print "Content-type: text/plain\n\n";
$, = "\n";
print map { "$_: $ENV{$_}" } keys %ENV;
That ought to print out all the environment variables and should run anywhere (after modifying the shebang). If the above works, you know your installation is fine and you need to start looking into the script itself for the problem. If the above doesn't work, its almost certainly a configuration problem.
---- I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|