http://qs321.pair.com?node_id=761686


in reply to Re: foreach doesn't select array element
in thread foreach doesn't select array element

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...