programming-examples/perl/Statement/Choosing an Iterator.pl
2019-11-15 12:59:38 +01:00

7 lines
135 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
my @array = (1, 3, 5, 7, 9);
foreach my $i (@array) {
print "This element: $i\n";
}