Keep It Simple, Stupid | |
PerlMonks |
Re^4: When DOESN'T "Use of uninitialized value" show up?by moritz (Cardinal) |
on Dec 17, 2011 at 08:36 UTC ( [id://944049]=note: print w/replies, xml ) | Need Help?? |
"b => {}" is required so that the presence of {c} can be checked. And that's the part where I disagree. If $a->{b} doesn't exist, we know that $a->{b}{c} cannot exist, and perl could know too. The fact that such reads autovivify are really only due to a quirk in the implementation, and not deducible from a general rule like "autovivification happens only when it needs to".
In Section
Seekers of Perl Wisdom
|
|