Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: global variable in a package

by ysth (Canon)
on Jan 02, 2006 at 07:49 UTC ( [id://520355]=note: print w/replies, xml ) Need Help??


in reply to global variable in a package

Can you show some code? You seem to be contradicting yourself: "the hash is used only in a function in that package" vs. "the Module which is accessing the hash is different from the module which contains the hash".

You can access a global variable in a different package by prefixing with the package name, e.g. keys %packagename::hash

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-18 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found