$ratio1 = ( $$arr_ref2[$index1] / $$arr_ref1[$index1], "\t" ); $variable1 .= $ratio1; #join column by column