Keep It Simple, Stupid | |
PerlMonks |
Re: perl group by and sort from a csv input fileby Corion (Patriarch) |
on Jul 27, 2017 at 07:34 UTC ( [id://1196144]=note: print w/replies, xml ) | Need Help?? |
The easiest approaches are to use either DBD::CSV or to load your CSV data into a database and then to use SQL to run your queries against that. See also DBI. The harder approach would be to implement the aggregation yourself. As you don't show any code, it's hard to give you more specific advice, as I can't really tell where you are having problems. The synopsis section of DBD::CSV shows all there is to using a CSV file as a DBI table.
In Section
Seekers of Perl Wisdom
|
|