I have a routine that writes data from a scalar into a file with the following syntax:

print DATADIR "$data_line\n";

However, on some servers, once I download the data I get a file where each record is delimited by a carriage return + line feed (which is what I want), BUT on others I receive a file where each record is delimited by just a line feed (which is what I DO NOT want).

Any idea what is causing this or how I could write the lines to the file more consistantly?

Thanks for all of your help! I have finally found the answer or at least how to handle it. It turns out the PC's that were receiving this file size difference were running Perl from the perlis.dll rather than the Perl.exe. It appears as though the dll strips off the CR when downloading...once again thanks!