reading data from a file to an array

view story

http://www.unix.com – I need some help with this code below, i doesnt know why it will run twice with my function, but my function only got if else, any other way that can read line and put into array? Code: while read line; do     read -A array <<<$line     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 thanks (HowTos)