in reply to foreach doesn't select array element
Why would the foreach change anything, its the same reference?
You probably want# ALL SAME dump(@$fldref[TXT]); foreach my $tmp (@$fldref[TXT]) { dump($tmp); } my ( $foobar ) = @$fldref[TXT]; dump($foobar);
When in doubt, show Data::Dumper outputforeach my $tmp (@{ $fldref[TXT][0] }) { dump($tmp); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: foreach doesn't select array element
by december (Pilgrim) on May 04, 2009 at 09:52 UTC | |
by Marshall (Canon) on May 04, 2009 at 10:08 UTC | |
by december (Pilgrim) on May 04, 2009 at 13:50 UTC | |
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 |
In Section
Seekers of Perl Wisdom