Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: global variable in a package

by mikeock (Hermit)
on Jan 02, 2006 at 20:17 UTC ( [id://520448]=note: print w/replies, xml ) Need Help??


in reply to global variable in a package

Maybe you should look how the variable is being declared.. From what I can gather, you should declare it in the package as a my %hash.

From there you then declare an our within the sub or whatever is using the hash.

Camel -> pg 134

"Our never creates values; it just exposes a limited form of acces to the global, which lives forever.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (None)
    As of 2024-04-25 03:58 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found