Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
go ahead... be a heretic
 
PerlMonks  

Re: Lexical scoping like a fox

by Anonymous Monk
on Dec 28, 2002 at 21:51 UTC ( #222798=note: print w/ replies, xml ) Need Help??


in reply to Lexical scoping like a fox

I think that it would be good if this tutorial not only explained what closures are, but also the common "variable will not stay shared" gotcha. This tends to be hit in mod_perl when people use Apache::Registry and wrap what was a working program inside of a function.

If you are trying to explain what the problem is and why it is impossible to resolve properly, the example at Re (tilly) 9: Why are closures cool? may help...


Comment on Re: Lexical scoping like a fox

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-04-18 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (468 votes), past polls