Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Perl Issue - File downloaded in windows has a Control M character in it??

by fishmonger (Pilgrim)
on Oct 24, 2012 at 20:14 UTC ( #1000705=note: print w/ replies, xml ) Need Help??


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
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000705]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2014-09-19 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (134 votes), past polls