http://www.perlmonks.org?node_id=1000705


in reply to Perl Issue - File downloaded in windows has a Control M character in it??

This problem has nothing to do with the version of perl; it's due to the way the file was transferred from the *nix system to the Windows system. The usinx2dos program does not need to be put into the system32 directory. You can download it to your home directory and use it from there, or you can simply edit the file with Perl or with a decent text editor. C:\>perl -pi.bak -e "s/\n/\r\n/g" yourfile
  • Comment on Re: Perl Issue - File downloaded in windows has a Control M character in it??
  • Download Code

Replies are listed 'Best First'.
Re^2: Perl Issue - File downloaded in windows has a Control M character in it??
by venky144 (Initiate) on Oct 24, 2012 at 20:38 UTC
    can you please let me know where to put that in my script...as i told u guys..i am completely new to perl... i am etl devleoper...there are many such scripts that download the files and they are used by upstream processes...its all automated...i cant manually go to each and every file