Hi,
read the first file line by line. Split the line at the '='. Take the first part as key of a hash and the second as value of that key. Then do the same for the second file. When you hit in the second file a key which was already read than the value gets substituted. When you have read both files print every tuple (key, value) of your resulting hash to the first file.
When you have problems with some of that subtasks show us your code and we'll help you.
McA
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Merge the difference between two files and save it on the first file. Also update the first file with info in second file.
by Shariq (Initiate) on Oct 11, 2013 at 09:37 UTC | |
by LanX (Saint) on Oct 11, 2013 at 21:36 UTC | |
by pvaldes (Chaplain) on Oct 14, 2013 at 20:38 UTC | |
by marinersk (Priest) on Oct 11, 2013 at 21:15 UTC | |
by Shariq (Initiate) on Oct 14, 2013 at 02:52 UTC |
In Section
Seekers of Perl Wisdom