[MacPerl] persistent local variable

2005-03-12 Thread Louis Pouzin
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

Re: [MacPerl] persistent local variable

2005-03-12 Thread Bart Lateur
On Sat, 12 Mar 2005 02:06:20 +0100 (MET), Louis Pouzin wrote: >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 variabl