http://qs321.pair.com?node_id=663843


in reply to Re^5: last in a do while loop (for (;;))
in thread last in a do while loop

Update: Duplicative, nothing new here, move along.

Add a block or single-pass loop around your do while.

my $i = 0; { do { print $i++, $/; last if $i == 2; } while ( $i < 4); }
Be well,
rir