A minor quibble: We can't entirely ignore intervening code. For example,my $x; <- this one. { my $y; <- not this one. ... } { my $z; <- this one. sub f { ... } }
my $x = 'shadowed'; # <- invisible { my $x = 'shadowing'; # <- visible sub f { say "I only see the \$x that's $x." }; }
In reply to Re^4: closure clarity, please
by JadeNB
in thread closure clarity, please
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |