Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Accessing DEBUG constant from sub-package

by Anonymous Monk
on Aug 09, 2013 at 23:21 UTC ( [id://1048862]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $debug;
    BEGIN { GetOptions('debug|d' => \$debug) or die }
    use constant DEBUG => $ENV{DEBUG} || $debug;
    
  2. or download this
    use Thing;
    my $obj = Thing->new;
    
  3. or download this
    use constant DEBUG => &main::DEBUG;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found