Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: backwards if and while looping

by ikegami (Patriarch)
on Oct 01, 2004 at 20:40 UTC ( [id://395755]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (not $error and $a < $b) {
       $a++;
    }
    
  2. or download this
    do { while ($a < $b) {
       $a++;
    } } if (not $error);
    
  3. or download this
    do {
       $a++ while ($a < $b);
    } if (not $error);
    

Log In?
Username:
Password:

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

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

    No recent polls found