Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: storing data in a package/module

by etcshadow (Priest)
on Oct 29, 2003 at 18:33 UTC ( [id://303075]=note: print w/replies, xml ) Need Help??


in reply to Re: storing data in a package/module
in thread storing data in a package/module

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://303075]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found