7.6. foreach loop on numbers

foreach my $i (1..10) {
    print "$i\n";
}

1
2
3
4
5
6
7
8
9
10


If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed