Help for this page
SELECT colIP, ... SUM(colPartitionFree) as free FROM table_name GROUP BY colIP
my $rows = ...; # ref to AoH my %ips; ... $ips{ $row->{colIP} }->{ colPartitionFree } += $row->{colPartitionFr +ee}; } print Dumper \%ips;