From the other day see Re: How do you check if a key exists without creating it ?
no autovivification;
if( exists $foo->{bar}{anything}{you}{want} ){ }
Or
use Data::Diver 'Dive';
if( my $want = Dive( $foo, qw/ bar anything you want / ) ){ ... }
In reply to Re: I just want to understand why ...
by Anonymous Monk
in thread Why does testing for the existence of hash keys create the keys ?
by fshrewsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |