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

9 lines
145 B
Perl

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