Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: closure clarity, please

by JadeNB (Chaplain)
on Nov 25, 2009 at 06:58 UTC ( #809282=note: print w/replies, xml ) Need Help??


in reply to Re^3: closure clarity, please
in thread closure clarity, please

my $x; <- this one. { my $y; <- not this one. ... } { my $z; <- this one. sub f { ... } }
A minor quibble: We can't entirely ignore intervening code. For example,
my $x = 'shadowed'; # <- invisible { my $x = 'shadowing'; # <- visible sub f { say "I only see the \$x that's $x." }; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2021-05-14 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (148 votes). Check out past polls.

    Notices?