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. LOOP: { last if $something; ... redo; } INFINITELOOP: { ... redo; } FILTER_FOO_LOOP: { next if foo(); ... redo; } FOO_SWITCH: { foo() and last; foobar() and last if something(); }
In reply to Re: Re: do/redo or for(;;): what's Kosher?
by runrig
in thread do/redo or for(;;): what's Kosher?
by rje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |