> > prints 2 instead of giving an intelligent error message that one should
use loop
> > or better yet for 1..3 -> $i {  }

> Presumably "say $_" would also yield 2, since I gather the for
is looping over ($i).

$ perl6 -e ' for (my $i = 1; $i <= 3; $i++) { say $i; }'
2

$ perl6 -e ' for (my $i = 1; $i <= 3; $i++) { say $i; say $_ }'
2
1

So the "++" is applied before the loop body but after the assignment to $_

a
-------------------
Andy Bach
Systems Mangler
Internet: andy_b...@wiwb.uscourts.gov
Voice: (608) 261-5738; Cell: (608) 658-1890

History will have to record that the greatest tragedy of this period
of social transition was not the strident clamor of the bad people,
but the appalling silence of the good people.
Martin Luther King, Jr.

Reply via email to