in reply to Re^2: scoping inside the loop
in thread scoping inside the loop
No, up to the point that you declare an inner $i with my the outer one is used.
No inner my $i means the outer one is everywhere available.
These are universal rules for lexical variables in almost any language!
Have a look at the scoping-article I linked.
Cheers Rolf
( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom