- or download this
for (my $i = 0; $i < @somewords -1; $i++) {
print " $somewords[$i];\n"
}
- or download this
foreach $core (@somewords[0 .. $#somewords-1]) {
print " ${core};\n"
}
- or download this
my $i = 0;
foreach my $core (@somewords) {
next if ++$i == @somewords;
print " ${core};\n"
}