|
|
| Just another Perl shrine | |
| PerlMonks |
Re^2: a sub within a sub -- revisitingby ikegami (Pope) |
| on Apr 11, 2010 at 06:21 UTC ( #834057=note: print w/ replies, xml ) | Need Help?? |
|
Note that the above leaks if the anon sub accesses $bar. That would be the case if the anon sub is recursive, for example. I find the following simpler, and it doesn't leak.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||