Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Closure Explanation

by Anonymous Monk
on Apr 30, 2010 at 02:16 UTC ( #837670=note: print w/ replies, xml ) Need Help??


in reply to Closure Explanation

sub make_counter { my $start = shift; return sub { warn \$start; $start++ } }


Comment on Re: Closure Explanation
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://837670]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-07-04 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls