On Sat, Jan 17, 2009 at 5:44 PM, via RT Gabor Szabo
<perl6-bugs-follo...@perl.org> wrote:
> for (my $i = 1; $i <= 3; $i++) { say $i; }
>
> prints 2 instead of giving an intelligent error message that one should use 
> loop
> or better yet for 1..3 -> $i {  }

A warning, surely?  As far as I can tell, the above is perfectly legal
code.  Presumably "say $_" would also yield 2, since I gather the for
is looping over ($i).


-- 
Mark J. Reed <markjr...@gmail.com>

Reply via email to