programming-examples/perl/Statement/Duplicate of the foreach structure with for structure.pl
2019-11-15 12:59:38 +01:00

8 lines
125 B
Perl

for $letter ( 'A' .. 'G' ) {
print "$letter";
}
print "\n";
foreach $letter ( 'A' .. 'G' ) {
print "$letter";
}