in reply to
Re: do/redo or for(;;): what's Kosher?
in thread do/redo or for(;;): what's Kosher?
...it's not obvious to me that it's an infinite loop...
Its easy to see on a short, simple loop, but on longer
more complex things I just label loops as such (or whatever they function as):
# I usually include the label in the loop control statement
# so everything's immediately obvious, but I omit them here.
last if $something;
next if foo();
foo() and last;
foobar() and last if something();