That is, lexical variables that don't share a scope are unreachable.Not strictly true since you can modify lexical variables with the help of PadWalker. Here's some code from the docs
Although you'd have to be quite a disturbed individual to use this sort of thing insub increment_my_x { my $h = peek_my (1); ${$h->{'$x'}}++; } my $x=5; increment_my_x; print $x; # prints 6
_________
broquaint
In reply to Re: Re: Caller's Variables
by broquaint
in thread Caller's Variables
by mystik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |