in reply to BEGIN and 'use' question

For switching off CGI::Carp for command line testing, why not use:
use constant DEBUG => $ENV{SCRIPT_NAME};

That way it's automatically off when you run from the shell.

.02

cLive ;-)

--
seek(JOB,$$LA,0);

Replies are listed 'Best First'.
Re: Re: BEGIN and 'use' question
by legLess (Hermit) on May 09, 2002 at 17:12 UTC
    That's a cool suggestion, cLive ;-), and I'll keep it in mind. I'm running the script from my local Apache though, not a shell, so it won't help for this one.
    --
    man with no legs, inc.