I've noticed that on some of my simpler CGI scripts, in which I use CGI::Carp's 'die' replacement to print an error message to the browser, PerlRun will give an internal server error instead, but still log the error message. These scripts worked fine under mod_cgi. CGI::Carp's documentation claims to have long ago been patched to work with mod_perl, but for some reason this isn't working for me. Even a very simple example:
#!/usr/bin/perl -w use CGI::Carp 'fatalsToBrowser'; die 'CGI::Carp test';
will log this in error_log:
[Thu Dec 9 10:54:27 2004] [error] PerlRun: `CGI::Carp test at /System/Library/Perl/5.8.1/CGI/Carp.pm line 312.
yet generate a 500 error for the browser (access_log):
[09/Dec/2004:10:54:27 -0500] "GET /cgi-bin/carptest.pl HTTP/1.1" 500 605
Does anyone know why this would happen under PerlRun, which is *supposed* to be able to run CGI scripts without modification, and if there's a workaround?
Thanks, Brian
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html