in reply to Re^2: suppress the elements that appear more than one time in a list
in thread suppress the elements that appear more than one time in a list
$Hash{$k} += $v;
as it is and change the split to reflect the fact that your value comes before the key on the line
my ($v, $k) = split /;/;
You still need to use += since you wish to accumulate the values.
Cheers,
JohnGG
|
|---|