in reply to Re: I just want to understand why ...
in thread Why does testing for the existence of hash keys create the keys ?
No autovivification.
Huh?
18:58 >perl -w -Mstrict -MData::Dumper -E "my $foo; say Dumper($foo); +if (exists $foo->{bar}{anything}{you}{want} ) { say 'hi' } say Dumper +($foo);" $VAR1 = undef; $VAR1 = { 'bar' => { 'anything' => { 'you' => {} } } }; 19:00 >
Looks like 3 levels of autovivification to me.
???
Update: See below.
Athanasius <°(((>< contra mundum
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: I just want to understand why ...
by choroba (Cardinal) on Oct 08, 2012 at 09:17 UTC | |
by Athanasius (Archbishop) on Oct 08, 2012 at 09:24 UTC |
In Section
Seekers of Perl Wisdom