Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 pondering the Monastery: (5)
As of 2014-12-27 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls