Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 cooling their heels in the Monastery: (8)
As of 2015-07-04 13:45 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 (60 votes), past polls