Just another Perl shrine | |
PerlMonks |
Re^6: Perl bug ?by tinita (Parson) |
on Feb 06, 2013 at 13:20 UTC ( [id://1017422]=note: print w/replies, xml ) | Need Help?? |
seems like the arguments for "for" are executed first and then the loop body. so: the first element is $e && 0 which evaluates to $e. then the second argument is processed, autovivify happens. when in the loop body, $e is an array reference already, and because the first element is an alias to $e it prints ARRAY(0xde0d48). seems logical to me.
In Section
Seekers of Perl Wisdom
|
|