Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: defining constant in other package

by Corion (Patriarch)
on Apr 24, 2012 at 14:45 UTC ( [id://966861]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BEGIN {
        sub MyPackg::DBG() {
    ...
    package MyPackg;
    print 'DEBUGGING' if DBG();  # <-- oops
    print 'huhu';
    
  2. or download this
    F:\>perl -MO=Deparse tmp.pl
    sub MyPackg::DBG () { 0 }
    ...
    '???';
    print 'huhu';
    tmp.pl syntax OK
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-25 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found