in reply to conditional loop

Depending on where your conditions are set and change the following could be a way to do it.

sub stuff statement 1 statement 2 statement 3 .... } if(cond1) { stuff(); } elsif (cond2) { stuff() while (innercond); }

What's this about a "crooked mitre"? I'm good at woodwork!