in reply to Re: CGI::Application & mod_perl
in thread CGI::Application & mod_perl

I have CGI::Carp(fatalsToBrowser) in my (test) scripts and it works as expected in a mod_perl setup.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re^3: CGI::Application & mod_perl
by Anonymous Monk on Feb 01, 2005 at 17:49 UTC
    Hmm... and I just convinced myself it couldn't be done. What could I be doing wrong?

    #!/usr/bin/perl + package Apache::mod_test; use CGI::Carp qw(fatalsToBrowser); + sub handler { die 'oops'; } + 1;
    500 error in browser.
    In the error logs I get:
    [Tue Feb 01 09:36:20 2005] [error] [client 192.168.2.3] oops at /usr/l +ib/perl5/5.8.0/CGI/Carp.pm line 314.