in reply to Re^2: array of arrays
in thread array of arrays

Replace

$Sub_Total[$key] += $data{$key}[$val];
with
$Sub_Total[$key] +=$val;
You should then come back and tell us what you did wrong in the original.