Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl style question: loops with postcondition

by Nitrox (Chaplain)
on Jul 22, 2002 at 23:37 UTC ( #184291=note: print w/replies, xml ) Need Help??


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}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://184291]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2023-09-22 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?