in reply to Re: using Carp & CGI::Carp?
in thread using Carp & CGI::Carp?
# test to see if we're running under Apache/mod_perl and load # the appropriate Carp module BEGIN { if ($ENV{MOD_PERL}) { require CGI::Carp; import CGI::Carp qw(carp confess cluck croak fatalsToBrowser); } else { require Carp; import Carp qw(carp confess cluck croak); } }
-Aaron
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: using Carp & CGI::Carp?
by chromatic (Archbishop) on Mar 24, 2003 at 19:50 UTC |