![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Avoiding Global Varsby bv (Friar) |
on Sep 22, 2009 at 16:17 UTC ( #796746=note: print w/replies, xml ) | Need Help?? |
You could wrap it in a block:
Or use a state variable (Perl 5.10 or 6 only, I believe)
In Section
Seekers of Perl Wisdom
|
|