Perl Monk, Perl Meditation | |
PerlMonks |
Re: group by and sum for two columnsby kcott (Archbishop) |
on Aug 09, 2017 at 09:40 UTC ( [id://1197090]=note: print w/replies, xml ) | Need Help?? |
G'day gowthamvels, What you're after is a very simple exercise in using Text::CSV. Here's the guts of it:
Output:
Please post data between <code>...</code> tags (as already requested in responses to this and your last post). Show the data as it appears in the file: do not make records into dot points or otherwise change their original format. Also check what you post, multiple times if necessary, using the "preview" button: in this instance, you posted "col1,...,col7" but there are eight columns, not seven. — Ken
In Section
Seekers of Perl Wisdom
|
|