in reply to
Loop 'for' and '$_'.
If you wrote:
for my $x (1..10) { for my $x (11..20) { print $x; } }
[download]
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.
Comment on
Re: Loop 'for' and '$_'.
Select
or
Download
Code
In Section
Seekers of Perl Wisdom