perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Dimeler <>
Subject CGI::Carp and PerlRun
Date Thu, 09 Dec 2004 15:59:32 GMT
  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/ line 312.

yet generate a 500 error for the browser (access_log):

[09/Dec/2004:10:54:27 -0500] "GET /cgi-bin/ 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?


Report problems:
Mail list info:
List etiquette:

View raw message