programming-examples/perl/Statement/Standard foreach structure. Prints the letters A-G.pl

3 lines
56 B
Perl
Raw Normal View History

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