On 10/4/06, Juerd <[EMAIL PROTECTED]> wrote:
Damian Conway skribis 2006-10-03 16:40 (-0700):
> >Which can also be written as:
> > do { do { say 1 if 1 } if 1 } if 1;
> Sorry, no it can't. From S4
> (http://dev.perl.org/perl6/doc/design/syn/S04.html#The_repeat_statement):
> "Unlike in Perl 5, applying a statement modifier to a do block is
> specifically disallowed
Oh. For some reason, I thought this exception was for loops only.
According to S04 C<do { ... }> is a loop, "The do-once loop".
--
Markus Laire