in reply to How to add column into array from delimited tab file

G'day hellohello1,

You don't show any code populating the array @data. The code

print OUT1 "$data[1]"

is printing the second element of the array @data which, from your description, contains the value dataR1.

I expect what you want is

print OUT1 "@data1"

-- Ken