Hi,
I am still learning Perl scripting and need help in doing below task.
Sample data:
INV ,GOOD"
2405
INV ,BAD"
42
LOAD ,GOOD"
35588
LOAD ,BAD"
675
TRNS ,GOOD"
6
TRNS ,BAD"
122
I want to add the values under GOOD and BAD.
GOOD, <sum of all good values>
BAD, <sum of all bad values>
Can anyone please suggest me code to read the first line and put the values from next line in an array to add them latter.