Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Re: (tye)Re2: A Real Closure

by diotalevi (Canon)
on Jun 03, 2003 at 19:45 UTC ( #262762=note: print w/ replies, xml ) Need Help??

in reply to Re: (tye)Re2: A Real Closure
in thread Unusual Closure Behaviour

I've also used that behaviour to get less-global shared variables. I was working around an even uglier problem and this isn't the sort of thing I'd recommend for general usage but it is another useful usage.

{ my $x=0; sub foo { $x } sub bar { $x } }

Comment on Re: Re: (tye)Re2: A Real Closure
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2015-11-29 05:15 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (747 votes), past polls