I have a CSV file with a lot of columns and rows but I need to sum cells of certain column:
Samples | Name | Value1 | Value2 | Value3
A-Sample | A-Name | 1 | 32 | 27 | 21
B-Sample | B-Name | 2 | 23 | 12 | 13
C-Sample | C-Name | 3 | 10 | 98 | 59
D-Sample | D-Name | 4 | 21 | 78 | 72
E-Sample | E-Name | 5 | 32 | 72 | 27
I need Sum of cells in column Value 1
, Sum of cells in column Value2
. I'm trying to use Text::CSV, but I only get the result as lines.
Could anyone help me?