Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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


Comment on Re: while loops
Select or Download Code

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 rifling through the Monastery: (4)
As of 2014-12-28 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls