in reply to string to scalar?
One way of forcing numeric context is to simply add nothing (say, if you have $num = "2.750000"):
$num += 0;
And, if you really need an integer, use int($num).
/J