in reply to Zero being added when reading from filehandle?
Cutting and pasting exactly from your posted code, I can't reproduce that. Are you absolutely certain that /tmp/count.out file doesn't already have the leading zero? The problem is somewhere in what you're not telling us.