The best approach is to identify the duplicates using the approach found in perlfaq4. Merging the values of two duplicates sounds to be mostly a matter of arithmetic.
Where in the task do you have problems?
In reply to Re: Merging partially duplicate lines
by Corion
in thread Merging partially duplicate lines
by K_Edw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |