Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: do {$i++} until vs. $i++ until

by jethro (Monsignor)
on Mar 26, 2008 at 00:33 UTC ( [id://676272]=note: print w/replies, xml ) Need Help??


in reply to Re: do {$i++} until vs. $i++ until
in thread do {$i++} until vs. $i++ until

Note that I did not criticize the first-execute-then-check do{} until but the first-check-then-execute of $i++ until. THAT is the code that feels wrong. That is the construct that puzzles me. Anyone know a language where this is handled the same?

But I could live with the "wrong" construction if both cases were at least consistent with each other.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found