Hi,

I'm learning perl now and would like to find out how to perform the
following if given in a text file?


AAAA,12
AAAA,437
BBBB,124
CCCC,45
BBBB,789
AAAA,67
CCC,567
DDD,5


How to sum up the 2nd column based on the 1st column with the
following result:


AAAA:
BBB:
CCC:
DDD:


Thanks in advance.



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to