Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl style question: loops with postcondition

by Nitrox (Chaplain)
on Jul 22, 2002 at 23:37 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2025-05-12 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.