Mega Code Archive

 
Categories / Perl / Statement
 

Duplicate the for structure with the foreach keyword

foreach ( $number = 0; $number <= 20; $number += 5 ) {    print "$number "; } print "\n";