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.
rir
Add a block or single-pass loop around your do while.
Be well,my $i = 0; { do { print $i++, $/; last if $i == 2; } while ( $i < 4); }
rir
In Section
Seekers of Perl Wisdom