in reply to IO::File - Windows crlf?

Perl adds the :crlf layer to handles by default on Windows. It converts "\n" to CRLF when writing (and vice-versa on reading), so all you need to do is print "\n".