From: Xavier Noria Date: 2006-12-14T20:15:02+09:00 Subject: Re: How to always write Windows style newlines to a file? On Dec 13, 2006, at 7:10 PM, Daniel Berger wrote: > If you still really want to do this, you can set $/ (record separator) That would be $\, the _output_ record separator. > to "\r\n". But that's a valid solution only if you set binmode on the filehandle, otherwise you'll get a double \r on Windows. -- fxn