morgon has asked for the wisdom of the Perl Monks concerning the following question:
I am currently munching CSV files and have re-occurring tasks like
- add a line consisting of sums of column-values
- calculate things like "sum all values in column 2 execpt for the last one and then find the difference to the last one"
- find the average of the values in column 4
etc etc
and I wonder: is there a good module to do such kinds of things?
At the moment I use DBD::CVS and use SQL to calculate things but it does seem to be a bit silly...
Bascially I am looking for a module that would allow me to treat a CSV a bit like a spreadsheet, but from the command-line as the output goes straight into gnuplot.
Probably all of the above sounds like the ranting of a mad man but maybe someone understands what my problem is and can give me a hint.
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Handling CSV files
by kevbot (Vicar) on Oct 21, 2015 at 04:14 UTC | |
|
Re: Handling CSV files
by NetWallah (Canon) on Oct 21, 2015 at 02:44 UTC | |
by Tux (Canon) on Oct 21, 2015 at 06:39 UTC | |
by soonix (Chancellor) on Oct 22, 2015 at 17:13 UTC | |
|
Re: Handling CSV files
by GrandFather (Saint) on Oct 21, 2015 at 22:18 UTC |