Perl Monk, Perl Meditation | |
PerlMonks |
Re: How to avoid closures and memory leaks.by LanX (Saint) |
on Oct 18, 2014 at 11:12 UTC ( [id://1104226]=note: print w/replies, xml ) | Need Help?? |
Use a my declaration before using a var in your subs, then you'll "avoid closures". See also Coping with Scoping
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :) PS: Maybe a case of how (not) to ask a question ?
In Section
Seekers of Perl Wisdom
|
|