I belive what is happening is that each statement in the for is being evaluated from left to right, thus making the $i = 1 portion win out. The list the loop works on becomes ($i, $i, $i), which makes the complete code equivilent to:
my $i = 1; for ( $i, $i, $i ) { print "$_ and $i\n"; }
----
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Mysterious for behavior
by hardburn
in thread Mysterious for behavior
by Roy Johnson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |