in reply to Re: When DOESN'T "Use of uninitialized value" show up?
in thread When DOESN'T "Use of uninitialized value" show up?
Autovivification only happens when required
Be careful with such statements:
$ perl -le 'my $a; defined $a->{b}{c}; print ref $a' HASH
Autovivification is not required here, but still the hash access autovivifies $a to { b => {} }.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: When DOESN'T "Use of uninitialized value" show up?
by GrandFather (Saint) on Dec 16, 2011 at 22:44 UTC | |
by moritz (Cardinal) on Dec 17, 2011 at 08:36 UTC | |
by ikegami (Patriarch) on Dec 17, 2011 at 09:12 UTC | |
|
Re^3: When DOESN'T "Use of uninitialized value" show up?
by Skeeve (Parson) on Dec 16, 2011 at 22:49 UTC |