Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Why Closures?

by ZZamboni (Curate)
on Apr 28, 2001 at 21:09 UTC ( #76395=note: print w/replies, xml ) Need Help??


in reply to Why Closures?

As a simple example of a useful application of closures (and some interesting discussion) see my Setting up signal handlers for an object with access to $self snippet. In this case, you can use closures to store the current value of a variable ($self in this case) to provide later access to its current value without having to explicitly store it anywhere.

--ZZamboni

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2019-07-21 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (7 votes). Check out past polls.

    Notices?