[Apologies for the last post. Gmail got a little eager.
 Here's what I meant to send...]

Juerd wrote:

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..."


FWIW, I completely agree with Larry that multiple postfix modifiers are a bad idea and would only serve impair the comprehensibility of code (even in the cases where they're not ambiguous).

Damian

Reply via email to