Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 examining the Monastery: (14)
As of 2014-07-10 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (215 votes), past polls