Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: 'our' is not 'my'

by ikegami (Patriarch)
on Oct 26, 2007 at 12:02 UTC ( [id://647367]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package AA;
    $AA::var = __PACKAGE__;
    ...
    package BB;
    $BB::var = __PACKAGE__;
    print "$var\n";         # Prints 'AA'.
    
  2. or download this
    {
       package AA;
    ...
       $BB::var = __PACKAGE__;
       print "$var\n";         # Compile error!
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found