- or download this
for ( my $i = 0; $i < @array; $i++ ) {
...
}
- or download this
my @array = qw/ zero one two three four /;
for ( my $i = 0; $i < $#array; $i++ ) {
print $array[$i],$/;
}
- or download this
sub foo {
my $arg = shift;
...
$bar[ $data ] += $arg;
}
}