LOOP: { charlie; last LOOP if bob; david; redo LOOP if alice; }
A more concise syntax:
for (;;) { charlie; last if bob; david; last if !alice; }
It's my understanding that for (;;) { ... } can be replaced simply with loop { ... } in Perl6.
In reply to Re^2: last in a do while loop
by ikegami
in thread last in a do while loop
by gam3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |