XP is just a number | |
PerlMonks |
Re: Real life uses for closures.by zwon (Abbot) |
on Feb 12, 2013 at 05:42 UTC ( [id://1018302]=note: print w/replies, xml ) | Need Help?? |
I often use closures when I need to pass a callback as a function argument. I'm not sure what do you mean by delegates, but it is always currying or partial application. Note also, that state doesn't support initialization in list context, so when I need this I, again, use closures.
In Section
Seekers of Perl Wisdom
|
|