you wouldn't expect to be able to access the outer $x, would you? Well, $_ is just another variable, except that you don't have to name it.for my $x (1..10) { for my $x (11..20) { print $x; } }
In reply to Re: Loop 'for' and '$_'.
by roundboy
in thread Loop 'for' and '$_'.
by nite_man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |