##
sub main
{
my ($x,$y,$z) = @_;
my %final_hash;
# Something like this???
# I'm totally lost here
# $final_hash{$paramgroup} = add_them($x,$y,$z);
return %final_hash;
}
sub add_them
{
my ($x,$y,$z) = @_;
return ($x+$y+$z);
}
####
$result = {
'ParamGroup1' => 6, # 1+2+3
'ParamGroup2' => 12, # 3+4+5
'ParamGroup3' => 3, # 1+1+1
};