in reply to Hash of hash check if defined

Issue solved, that was a reference issue. Thanks to those who had a look into it. FYI:

Replace

$ulm_keys{ $h_tag } = { $h_val => 1, };

With

$ulm_keys{$h_tag}{$h_val}=1;