in reply to backwards if and while looping

I'm surprised no one has suggested this (I'll also assume your simple $a++ in the loop is just for demonstration purposes):
while (not $error and $a < $b) { $a++; }

blokhead

Replies are listed 'Best First'.
Re^2: backwards if and while looping
by Forsaken (Friar) on Oct 02, 2004 at 10:20 UTC
    this will test $error in every instance of the loop, as opposed to only once before initiating the loop. it works, but it requires more cpu time...