Surely Perl should take care of those translations for you. You don't have to change the line end characters in a script when you move it from Unix to Windows (or vice versa) do you?
Sound to me like you're writing the file on a Unix file system and then transfering it to Windows using a binary file transfer mechanism. This article may shed a little more light on the problem.
Otherwise, as chromatic says, give us more details where and how you're reading and writng these files and we can probably be more help.
--
"Perl make the fun jobs fun
and the boring jobs bearable" - me
In reply to RE: Re: printing \n to a file
by davorg
in thread printing \n to a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |