![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: foreach doesn't select array elementby Crackers2 (Parson) |
on May 04, 2009 at 17:20 UTC ( #761776=note: print w/replies, xml ) | Need Help?? |
I think you may be confused about Dumper output, and perhaps about what's actually in your arrays.
In your first example:
the fourth element in your array is an array ref, not an array. You can only store scalars in an array, so the only way to store an array in another array is to store a reference. The output you show in the second part: would actually mean a reference to a reference to an array.
In Section
Seekers of Perl Wisdom
|
|