Mega Code Archive

 
Categories / Perl / Statement
 

Example of foreach from a min to a max

#!/usr/bin/perl -w foreach $i (5..10) {     print "$i\n"; }