tony_ucdavis has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a file name "test" which has:
a 1
b 3
c 5
a 2
I want to write a perl script to open and read this file "test" and add value for same key and write out:
a 3
b 3
c 5
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to read a file and add value for same key
by moritz (Cardinal) on Jul 31, 2013 at 04:43 UTC | |
Re: How to read a file and add value for same key
by nevdka (Pilgrim) on Jul 31, 2013 at 05:30 UTC | |
Re: How to read a file and add value for same key
by Skeeve (Parson) on Jul 31, 2013 at 09:49 UTC | |
Re: How to read a file and add value for same key
by Anonymous Monk on Jul 31, 2013 at 06:29 UTC |
Back to
Seekers of Perl Wisdom