P is for Practical | |
PerlMonks |
Re: Autovivification Oddityby shmem (Chancellor) |
on Feb 11, 2018 at 13:27 UTC ( [id://1208954]=note: print w/replies, xml ) | Need Help?? |
Your last example is comparable to
since indexing autovivifies the anonymous array, as perlref explains. Retrieving its highest index is also a way of indexing. But I agree, autovivification is important enough to warrant a section on its own in e.g. perldata, which mentions it only once and refers to perlref.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|