persistent local variable
[email protected] (Louis Pouzin) Sat, 12 Mar 2005 02:06:20 +0100 (MET)
| Newsgroups | perl.macperl |
|---|---|
| Message-ID | <[email protected]> |
Hi list, I would like to make a library subroutine that maintains the value of some = local variables between successive calls. Is there such variable type in Perl ? As a substitute I've been using "use vars ...". It works, but those = variables may be clobbered from any part of a program. Is there a better way ? Thanks