Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

RE: while loops

by IainB (Initiate)
on Oct 27, 2000 at 16:31 UTC ( #38801=note: print w/replies, xml ) Need Help??


in reply to while loops

I think something's missing from this description.

It just doesn't look right to me.

Replies are listed 'Best First'.
RE: RE: while loops
by Albannach (Prior) on Oct 27, 2000 at 17:40 UTC
    ... nor me. There is definitely some data corruption.
      i think it should go like this

      $num = 20 ;

      while ($num < 30 ){
      $num = $num + 10 ;
      }
        Just a tip You can change the line $num = $num + 10 to $num += 10 It will do the same thing (increment $num by 10)
        Hey, hate to be lame here, but this was just the example I needed to see! Thanks! --X...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://38801]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2016-12-05 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (71 votes). Check out past polls.