- or download this
# Sorry about the MANY keyword - I would choose a better name
# for the secondary data, but I have no clue what would make
...
MANY => []
}
);
- or download this
for ( @array1 ) {
my ($id,$name,$ref) = split /,/;
...
}
push @{$keyhash{$id}{MANY}}, [ $name, $ref ];
}
- or download this
# A little something to get the plurality correct
for ( keys %keyhash ) {
...
$num,
$num > 1 ? "times" : "time";
}