On Wed, Dec 3, 2008 at 3:44 PM, Mark J. Reed <[EMAIL PROTECTED]> wrote:
> On Wed, Dec 3, 2008 at 3:42 PM,  <[EMAIL PROTECTED]> wrote:
>> loop {
>>    doSomething();
>> next if someCondition();
>>    doSomethingElse();
>> }
>
> That loops forever, doesn't it?   But I think this works:
>
> loop
> {
>   doSomething();
>   last unless someCondition();
>   doSomethingElse();
> }

That is, of course, merely the while(1) version from Aristotle's
original message rewritten with Perl 6's loop keyword.  As I said, I'm
OK with that, personally, but it's clearly not what he's looking for.

-- 
Mark J. Reed <[EMAIL PROTECTED]>

Reply via email to