Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

RE: RE: while loops

by Albannach (Prior)
on Oct 27, 2000 at 17:40 UTC ( #38807=note: print w/ replies, xml ) Need Help??


in reply to RE: while loops
in thread while loops

... nor me. There is definitely some data corruption.


Comment on RE: RE: while loops
Re: RE: RE: while loops
by Anonymous Monk on Jan 30, 2001 at 11:18 UTC
    i think it should go like this

    $num = 20 ;

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-09-30 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (385 votes), past polls