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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: foreach doesn't select array element
by Marshall (Canon) on May 04, 2009 at 10:08 UTC | |
by december (Pilgrim) on May 04, 2009 at 13:50 UTC | |
|
Re^3: foreach doesn't select array element
by AnomalousMonk (Archbishop) on May 04, 2009 at 10:31 UTC | |
by december (Pilgrim) on May 04, 2009 at 13:36 UTC | |
by AnomalousMonk (Archbishop) on May 05, 2009 at 15:19 UTC |