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

Questions about statement modifiers

Thread Next
From:
Agent Zhang
Date:
August 29, 2006 22:37
Subject:
Questions about statement modifiers
Message ID:
c711ff240608292237w53f20adevd0adb4badacd420d@mail.gmail.com
Hi, there~

I think S04 says too little about statement modifiers. Please comment
on the following code samples. Are they valid Perl 6?

    do { say } for 1..3;

    { say } for 1..3;

    -> $i { say $i } for 1..3;

And how about similar variations for other statement modifiers, such
as  while, given, if, until, and unless?

Thanks!

Agent

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