or download this
# Connect to the database, (the directory containing our csv file(s))
my $dbh = DBI->connect("DBI:CSV:f_dir=.;csv_eol=\n;");
...
my @rows = $dbh->selectrow_arrayref("SELECT IP, SUM(PartitionSize), SU
+M(PartitionFree) FROM results GROUP BY IP");
print ("@rows\n"); # Just here to view output