Hi Matthew, On Friday 12 November 2010 19:26:34 Matthew Young wrote: > I often read about closures being one of those 'end all beat all' > programming techniques reserved for the most sophisticated and > advanced gurus out there. Naturally, I want to learn how to use them, > and use them effectively - I know perl supports them! I know its a > sort of functional programming concept, but I know it is useful in > other ways as well (or so I hear!). > > What are closures? How are they used? When should they be used? Where > can I learn more about them? > > After reading this: http://www.perl.com/pub/2002/05/29/closure.html , > and not really understanding the second example at all - I am really > interested in knowing more. Links and explanations welcome of course.
I've written about closures in Perl here: * http://perl-begin.org/tutorials/perl-for-newbies/part3/ And there's a lot of stuff about them in Higher Order Perl: * http://hop.perl.plover.com/ I've truly understood what they were all about after I read the book "Structure and Interpretation of Computer Programs" (which uses Scheme for its examples): * http://mitpress.mit.edu/sicp/ All of these resources are available online. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Rethinking CPAN - http://shlom.in/rethinking-cpan <rindolf> She's a hot chick. But she smokes. <go|dfish> She can smoke as long as she's smokin'. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/