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

8 lines
125 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
for $letter ( 'A' .. 'G' ) {
print "$letter";
}
print "\n";
foreach $letter ( 'A' .. 'G' ) {
print "$letter";
}