Perl: the Markov chain saw | |
PerlMonks |
Re^4: closures: anonymous subs vs function templates?by Laurent_R (Canon) |
on Dec 22, 2014 at 07:56 UTC ( [id://1110997]=note: print w/replies, xml ) | Need Help?? |
I of course did not want to promote function templates for such use cases, but just tried to see how they could work out. I definitely agree that the approach with references to anoonymous subroutines is vastly superior, especially in view of your first remark: a new closure is destroying the previous one.
In Section
Seekers of Perl Wisdom
|
|