You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
181 B
Perl
10 lines
181 B
Perl
5 years ago
|
#!/usr/bin/perl
|
||
|
use warnings;
|
||
|
use strict;
|
||
|
my @array = (1, 3, 5, 7, 9);
|
||
|
my $i="Hello there";
|
||
|
foreach $i (@array) {
|
||
|
print "This element: $i\n";
|
||
|
}
|
||
|
print "All done: $i\n";
|