Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Accessing DEBUG constant from sub-package

by BrowserUk (Patriarch)
on Aug 09, 2013 at 23:49 UTC ( #1048863=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Some::Thing;
    
    ...
    if( ::DEBUG ) {
        ## do debug stuff
    }
    
  2. or download this
    use constant DEBUG => 1; ## set to 0 to disable debug and have debug g
    +uarded code optimised away
    use Some::Thing;
    
    ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-01-20 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (57 votes). Check out past polls.

    Notices?