programming-examples/perl/Statement/For each loop with array.pl
2019-11-15 12:59:38 +01:00

10 lines
169 B
Perl

#!/usr/bin/perl
use warnings;
@array = ("one", "two", "three");
foreach $iterator (@array) {
print "The value of the iterator is now $iterator \n";
}