Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: RE: RE: while loops

by Anonymous Monk
on Jan 30, 2001 at 11:18 UTC ( #55206=note: print w/replies, xml ) Need Help??

in reply to RE: RE: while loops
in thread while loops

i think it should go like this

$num = 20 ;

while ($num < 30 ){
$num = $num + 10 ;

Replies are listed 'Best First'.
Re: Re: RE: RE: while loops
by Anonymous Monk on Jun 06, 2001 at 15:33 UTC
    Just a tip You can change the line $num = $num + 10 to $num += 10 It will do the same thing (increment $num by 10)
Re: Re: RE: RE: while loops
by Anonymous Monk on Mar 08, 2001 at 10:57 UTC
    Hey, hate to be lame here, but this was just the example I needed to see! Thanks! --X...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://55206]
[PriNet]: go figure, i just tried that, it retains some of the values (not the key) of the pre-assigned value
[PriNet]: i guess i'll just have to use two seperate hashes, there are two, but one is larger than the other, and when i reference the smaller one, it holds onto the values that were assigned to the larger hash (the keynames change, but unless i reassign a new valu

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2017-06-28 02:58 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (619 votes). Check out past polls.