Indeed; for never iterates over an array. for always iterates over a list.
Doesn't this suggest that for iterates over the array, rather than over a list generated from the array?
c:\test>perl -wle"@a = 'a'..'f'; for( @a) { ++$_ }; print qq[@a]" b c d e f g
Maybe this is semantics, but I'd like to understand.
In reply to Re^2: RFC - FAQ for Modification of a read-only value attempted
by BrowserUk
in thread RFC - FAQ for Modification of a read-only value attempted
by imp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |