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


in reply to foreach doesn't select array element

Why would the foreach change anything, its the same reference?
# ALL SAME dump(@$fldref[TXT]); foreach my $tmp (@$fldref[TXT]) { dump($tmp); } my ( $foobar ) = @$fldref[TXT]; dump($foobar);
You probably want
foreach my $tmp (@{ $fldref[TXT][0] }) { dump($tmp); }
When in doubt, show Data::Dumper output