in reply to Loop 'for' and '$_'.

If you wrote:
for my $x (1..10) { for my $x (11..20) { print $x; } }
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.