Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^6: SIMPLE way to write these?

by Jenda (Abbot)
on Feb 05, 2014 at 09:59 UTC ( [id://1073538]=note: print w/replies, xml ) Need Help??


in reply to Re^5: SIMPLE way to write these?
in thread SIMPLE way to write these?

I think most would write this using the three argument for() statement:

my $number1 = 1; my $number2 = 10; for (my $i = $number1; $i <= $number2; $i++) { print "$i\n"; }

Jenda
Enoch was right!
Enjoy the last years of Rome.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-24 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found