programming-examples/perl/Statement/foreach statement.pl
2019-11-15 12:59:38 +01:00

6 lines
120 B
Perl

#!/usr/local/bin/perl
@words = ("Here", "is", "a", "list.");
foreach $word (@words) {
print ("$word\n");
}