Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: BEGIN and 'use' question

by jwest (Friar)
on May 07, 2002 at 18:15 UTC ( #164767=note: print w/replies, xml ) Need Help??

in reply to BEGIN and 'use' question

'use' implies a BEGIN block. Also, the DEBUG && BEGIN {} looks suspect to me. What you want instead is likely:

use constant DEBUG => 1; BEGIN { if (! DEBUG) { require CGI::Carp; import CGI::Carp qw/ fatalsToBrowser /; } }


-><- -><- -><- -><- -><-
All things are Perfect
    To every last Flaw
    And bound in accord
         With Eris's Law
 - HBT; The Book of Advice, 1:7

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://164767]
erix looks up Sheldon ...
[erix]: ah. well, that must feel nice, no? ;)
[erix]: not the best way to make friends, though (I suppose)
LanX Fun with Flags anyone?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2018-03-22 18:53 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (283 votes). Check out past polls.