The .. operator goes from a minimum to a maximum, with foreach
#!/usr/bin/perl -w foreach $i (5..10) { print "$i\n"; }