good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: closures: anonymous subs vs function templates?by 5haun (Scribe) |
on Dec 22, 2014 at 04:10 UTC ( [id://1110989]=note: print w/replies, xml ) | Need Help?? |
In my function template example, I put the local in front of *inner for just that reason - to limit the scope of inner to the block in which it is defined for the purposes of both limiting access and improving garbage collection. I appreciated the conversation all of these examples has created. I've learned a few things in the process. I thank all of you who have contributed this analysis.
In Section
Seekers of Perl Wisdom
|
|