Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: while loops

by lvanhout (Curate)
on Jun 15, 2004 at 17:42 UTC ( #366973=note: print w/ replies, xml ) Need Help??


in reply to Re: while loops
in thread while loops

Still not there.

$num=20; while($num<30) { print "num is $num\n"; <b><u>$num+=$num;\n</b></u> } #I think you ment: $num += 1; #Though these should work also: $num++; ++$num;
There is also an extra "\n;" in the code in the reply.


Comment on Re^2: while loops
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2015-07-05 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls