my $value = get_typea_sk2( $id, $position ); sub get_typea_sk2 { return $hash{$id}{$position}{type_a}{subkey2}; }