http://www.perlmonks.org?node_id=1018281

BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:

Besides simple C-style 'static' storage (which can now be done more easily with state variables); currying and delegates (are they essentially the same thing?); what uses do people put closures to?

I'm looking for real world examples (in Perl or other languages), rather than contrived text book examples.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.