"I have created two .dat files using a same perl script, but on different machines."
And they have created different files.
"Can someone please explain what might cause this? "
Most likely this non-numeric nonsense here at the end of every line of data:
which clearly does not exist in the other file:
Add nonsense to file, make it harder to parse. So far no surprises here.