[Detroit-pm] Conditional Carp?

Scott Webster Wood treii28 at yahoo.com
Wed Apr 23 08:44:57 PDT 2008


Anyone have a good 'trick' to use either Carp or CGI::Carp depending on if you are running a script from the web or from the command line?  I'm sure I could figure it out with some time spent and it would be easy enough to test against various $ENV variables that would only be defined from a browser request, but both Carp and CGI::Carp use the same method names.

SW




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


More information about the Detroit-pm mailing list