in reply to Re: adding values of element
in thread adding values of element
Thanks for replying.
What i want to do is read each line of the file and get the name and the amount. then read the next line and if the name exists, add the amount.
i could write a very long winded loop to get the unique name elements then for each of them add the amount per line but i am sure there is a better way to do this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: adding values of element
by johngg (Canon) on Jan 21, 2015 at 23:58 UTC | |
by Anonymous Monk on Jan 22, 2015 at 00:35 UTC | |
by new2perl2 (Initiate) on Jan 22, 2015 at 00:16 UTC | |
|
Re^3: adding values of element
by Anonymous Monk on Jan 22, 2015 at 00:42 UTC |