"be consistent" | |
PerlMonks |
Re: How to avoid closures and memory leaks.by ikegami (Patriarch) |
on Oct 19, 2014 at 05:51 UTC ( [id://1104288]=note: print w/replies, xml ) | Need Help?? |
What memory leak? There's no memory leak in what you posted, and there's no mention of memory leaks in the document you mention as the basis for this. This is how you get a memory leak from a closure:
The sub reference $foo, and $foo is a reference to the sub. But you don't have that.
In Section
Seekers of Perl Wisdom
|
|