[pugs] loop + my test

4 views
Skip to first unread message

Garrett Rooney

unread,
Mar 4, 2005, 9:59:41 PM3/4/05
to perl6-c...@perl.org
It seems that the loop statement currently doesn't let you declare
variables inside it, so the following code:

loop (my $i = 0; $i < 10; $i++) { }

doesn't work. Here's a test for the problem.

-garrett

loop-my.diff

Luke Palmer

unread,
Mar 4, 2005, 10:04:50 PM3/4/05
to Garrett Rooney, perl6-c...@perl.org

Thanks, applied.

Reply all
Reply to author
Forward
0 new messages