"be consistent" | |
PerlMonks |
Re: undefined value as an ARRAY reference sometimes okby Anonymous Monk |
on Dec 14, 2011 at 00:31 UTC ( [id://943453]=note: print w/replies, xml ) | Need Help?? |
It is not an inconsistency only lvalues get autovivified, and undef is not an lvalue
Even though undef can resemble an lvalue (hey, its on the left of an assignment), you can't assing a value to undef, so undef is not an lvalue
See References quick reference, autovivification, perlglossary#autovivification, autovivification, lvalue
In Section
Seekers of Perl Wisdom
|
|