Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 surveying the Monastery: (14)
As of 2014-10-21 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (100 votes), past polls