Welcome to the Monastery | |
PerlMonks |
Re: Re: storing data in a package/moduleby etcshadow (Priest) |
on Oct 29, 2003 at 18:33 UTC ( [id://303075]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|