my $location = $mainHash->{$hashType}{$regionID}{MetricType}{$resultHash->{Location}}; $location->{$yearMonthDateList[$start]} += $resultHash->{Value};