develooper Front page | perl.perl6.language | Postings from October 2006

Re: Nested statement modifiers.

Thread Previous | Thread Next
From:
Juerd
Date:
October 4, 2006 01:16
Subject:
Re: Nested statement modifiers.
Message ID:
20061004081625.GC31041@c4.convolution.nl
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.
-- 
korajn salutojn,

  juerd waalboer:  perl hacker  <juerd@juerd.nl>  <http://juerd.nl/sig>
  convolution:     ict solutions and consultancy <sales@convolution.nl>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About