imho, it creates it's own scope level that includes the LHS of the assignment:
... { my $j; $j = $_ for (1 ..3) } ...
Regards
mwa
In reply to Re: Assign in loop with and without declaration
by mwah
in thread Assign in loop with and without declaration
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |