in reply to dividing numbers
Well ... other issues aside ... you need to pull the arithmetic out of the string:
print RESULT "$id ", $count_of_A/$tt, " ", $count_of_C/$tt, " ", .... [download]