Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: 'our' is not 'my'

by ikegami (Pope)
on Oct 26, 2007 at 12:02 UTC ( #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
Node Status?
node history
Node Type: note [id://647367]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2014-10-20 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (75 votes), past polls