in reply to Re^2: Array refs problem ...
in thread Array refs problem ...

Oh wait, I missed that you removed the ( ) around @$FieldOrder also, I seem to be making progress now. Many thanks!

Only because they were distracting. They have absolutely no effect here.

Just like you wouldn't use $z=($x)+($y) instead of $z=$x+$y, there's no reason to use @a[(@$b)] instead of @a[@$b].