http://qs1969.pair.com?node_id=845118

mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I hope someone can point me in the right direction or advise solution. I have a file under UltraEdit shows as a U-DOS, under TextWrangler it shows as UTF-16 EL. If I view the file in linux using vi, line ends in ^M. I am trying to convert it to DOS format using Perl. I am running This is ActiveState perl, v5.10.0 on a win box. Nothing seems to work for making this file ASCII DOS. I have tried s/\n/\r\n/; which does not work. Any suggestion or help would be greatly appreciated.