in reply to Why does testing for the existence of hash keys create the keys ?
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 / ) ){ ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I just want to understand why ...
by Anonymous Monk on Oct 08, 2012 at 08:53 UTC | |
|
Re^2: I just want to understand why ...
by Athanasius (Archbishop) on Oct 08, 2012 at 09:15 UTC | |
by choroba (Cardinal) on Oct 08, 2012 at 09:17 UTC | |
by Athanasius (Archbishop) on Oct 08, 2012 at 09:24 UTC |