in reply to Hash of hash: testing for existence of higher level key (only)
If you do not know, you will need to iterate:if (exists $hash->{A}->{B2}->{C}) { ...
Why don't you TRY the code you think should work (or fail), and if it behaves differently from your expectations, we can help explain why.for my $k (keys %{ $hash->{A}->{B2} } ){ ...
As for the thing you were attempting in your previous node:
$hash->{'A'}->{'B2'}->{*} #is actually Equivalent to my @subkeys = keys %{ $hash->{A}->{B2} }; #at least - I think this is where you were heading...
I hope life isn't a big joke, because I don't get it.
-SNL
|
|---|