in reply to foreach doesn't select array element
I would expect dump(@$fldref[TXT]); and dump($tmp) to print out the same output.
dump(@$fldref[TXT]) is equivalent to dump($fldref[TXT][0], $fldref[TXT][1], ...). But since there is only one array element in $fldref[TXT] we get:
dump(@$fldref[TXT]) equivalent to dump($fldref[TXT][0]) which is equivalent to dump($tmp) - hence the same output.
Best, beth
In Section
Seekers of Perl Wisdom