Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

Comment on Re: BEGIN and 'use' question
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://164767]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2015-10-08 23:55 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls