Help for this page
$hash->{'A'}->{'B5'}->{'C'} = 123; $hash->{'A'}->{'B5'}->{'D'} = 103; $hash->{'A'}->{'B2'}->{'C'} = 101;
if (exists $hash->{'A'}->{'B2'}) ...
$hash->{'A'}->{'B2'}->{*}