Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: while loops

by Glyndwr (Initiate)
on Jan 11, 2002 at 18:35 UTC ( #138008=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $num=20; 
    $while($num<30){ 
       print "num is $num\n";
       $num=$num+1;\n ;
    }
    
  2. or download this
    $num=20;<BR>
    while($num<30){
       print "num is $num\n";
       $num+=$num;\n;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2015-03-02 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (56 votes), past polls