go ahead... be a heretic | |
PerlMonks |
Re^7: Array dereference in foreach()by choroba (Cardinal) |
on Nov 16, 2017 at 12:23 UTC ( [id://1203584]=note: print w/replies, xml ) | Need Help?? |
Note that $a gets autovivified into [] after for (@$a) -- that's because for creates a special context similar to lvalue (as its list's elements are aliased to the loop variable).
In Section
Seekers of Perl Wisdom
|
|