# $rec is an alias...
It's the previously declared lexical, implicitly localized. See perldoc perlsyn...
Shorter example, without the need to blame AoH for the problem:
my $var = 4; for $var (1 .. 9) { last if $var == 7; } print $var; # prints: 4
In reply to Re^2: What I Most Recently Learned in Perl, But Should Have Already Known
by pKai
in thread What I Most Recently Learned in Perl, But Should Have Already Known
by liverpole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |