Help with reading column in array

I have some version problem to use this code in my server

while read line; do
    read -A array <<<$line    <---------- the server dont read <<< 
    n=${#array[@]}
    for ((i=1;i<$n;i++)); do
       print "${array[$i]}"
    done
    func=${array[0]}
    data1=${array[1]}
    data2=${array[2]}
    eval $func \$data1 \$data2 
done < $list

How can i change the line to that the varible will be pass into the array.
my file is in the following format all separated by tabs, i want to read each columns

add         data1        data2
add         data1        data2
delete     data1        
replace    data1        data2
.
.
.
echo $line|read -A array

or

set -A array $line

or

array=($line)
1 Like