http://qs1969.pair.com?node_id=184291


in reply to Perl style question: loops with postcondition

What about
while($condition) {...}
-Nitrox

Replies are listed 'Best First'.
Re: Re: Perl style question: loops with postcondition
by thelenm (Vicar) on Jul 22, 2002 at 23:50 UTC
    That one's not a post-condition, though... in the original post, all the examples will execute the loop at least once, but while($condition){...} has the possibility of never executing the loop (if $condition is initially false).

    -- Mike

    --
    just,my${.02}