programming-examples/perl/Statement/Duplicate the for structure with the foreach keyword.pl

5 lines
94 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
foreach ( $number = 0; $number <= 20; $number += 5 ) {
print "$number ";
}
print "\n";