Here is the another way using ref
if(ref $Log_names{BM_light_test_00_} eq 'HASH' && exists($Log_names{BM +_light_test_00_}{device_log})) { print "Exists\n"; }
In reply to Re: Checking existence in hash of hashes without adding entries
by lakshmananindia
in thread Checking existence in hash of hashes without adding entries
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |