http://www.perlmonks.org?node_id=638968


in reply to Re^6: Error running CGI on tomcat
in thread Error running CGI on tomcat

You could check the environment in both scripts:
foreach my $key (%ENV) { print "$key => $ENV{$key}; }
and make sure that they are the same. You might also want to check @INC too: your tomcat installation might be pointing to a different perl (& libraries) than your command line.

rdfield