The following is another way when Autovivification is not desired.
if (exists $hash_ref->{$block} && !defined $hash_ref->{$block}->{$libN +ame}) { print "This is a test\n"; }
In reply to Re: Strange Hash related bug, keys are created by themselves!
by marioroy
in thread Strange Hash related bug, keys are created by themselves!
by mak007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |