- or download this
my @data = shift;
my $loop_count = 0;
...
$data[$loop_count] =~ m{s/\s*$//}xms;#line 213
$loop_count++;
}
- or download this
foreach $element (@array) {
do_stuff_to($element);
}
- or download this
for $index (0..$#array) { # $#array is the last index of @array
do_stuff_to($array[$index]);
do_stuff_to($other_array[$index]);
};