- or download this
$VAR1 = [
'AB',
...
'2',
'Traverse1'
];
- or download this
Traverse
AB 4
...
Subtotal 8
Total 16
- or download this
my $size = scalar(@f);
for ( my $i=0;$i<$size;$i++ ) {
my $key = "$f[$i]->[0]";
$result{$key}->[0] += $f[$i]->[1];
}
- or download this
Traverse
AB 4
...
Subtotal 8
Total 16