Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: while loops

by Anonymous Monk
on Oct 21, 2004 at 04:31 UTC( #401051=note: print w/replies, xml ) Need Help??


in reply to while loops

I think the example code is bad. The correct code is
#!/usr/bin/perl $num=20; while ($num<30) { print "num is $num\n"; $num=$num+1; }

Español

El codigo que esta de ejemplo esta mal este es el correcto

#!/usr/bin/perl $num=20; while ($num<30) { print "num is $num\n"; $num=$num+1; }

20041020 Edit by ysth: use p, code, hr tags; fix tilde-n

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2016-08-29 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (409 votes). Check out past polls.