Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 contemplating the Monastery: (6)
As of 2014-12-27 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (176 votes), past polls