Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: syntax question: conditional 'use' statement?

by mda2 (Hermit)
on Sep 19, 2006 at 14:57 UTC ( #573744=note: print w/replies, xml ) Need Help??


in reply to syntax question: conditional 'use' statement?

I'm according to Monsignor Tanktalus, but when you really need to do it, think to use constant to enable the debug flag:

use constant DEBUG => 2; use if DEBUG==2, warnings; print ">> $debug $D <<\n\n";

I'm really known if pragma now, and like it!

--
Marco Antonio
Rio-PM

20060920 Janitored by Corion: Linkified links as per What shortcuts can I use for linking to other information?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2019-12-06 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (159 votes). Check out past polls.

    Notices?