![]() |
|
XP is just a number | |
PerlMonks |
Re^2: foreach doesn't select array elementby december (Pilgrim) |
on May 04, 2009 at 09:52 UTC ( #761686=note: print w/replies, xml ) | Need Help?? |
A lot better, with that @{}... ... but I don't understand why Data::Dumper seems to suggest that @$fldref[3] points to an array, see original post – the fourth field is an array, as there's no slash in front of it. That's probably what confuses me. Shouldn't foreach (@$fldref[3]) {} automatically use the referenced array or spit out a warning about passing a single ref? Thanks for the help, though. I think I've been staring at the same code for too long...
In Section
Seekers of Perl Wisdom
|
|