The .. operator goes from a minimum to a maximum, with foreach : Range « Statement « Perl
- Perl
- Statement
- Range
The .. operator goes from a minimum to a maximum, with foreach
#!/usr/bin/perl -w
foreach $i (5..10) {
print "$i\n";
}
Related examples in the same category