Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: storing data in a package/module

by particle (Vicar)
on Oct 29, 2003 at 18:18 UTC ( #303073=note: print w/ replies, xml ) Need Help??


in reply to storing data in a package/module

try use vars or our

~Particle *accelerates*


Comment on Re: storing data in a package/module
Select or Download Code
Replies are listed 'Best First'.
Re: Re: storing data in a package/module
by etcshadow (Priest) on Oct 29, 2003 at 18:33 UTC
    use vars and my are simplest. Another option that might be better in some situations (or worse in others) is to use a lexical (my) variable, and have functions that get/set/return a reference to it.

    ------------
    :Wq
    Not an editor command: Wq

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-09-04 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (128 votes), past polls