|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Removing Carriage returns from text filesby mikfire (Deacon) |
| on Oct 17, 2001 at 19:32 UTC ( [id://119520]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I can offer a few suggestions.
Transfer the file to the UNIX box via ftp using ASCII mode. The main thing ASCII mode does is to translate CR/LF to newlines ( and back again ). On some flavours of UNIX ( it exists on my Solaris boxen but not my fbsd boxen ), there is a command called dos2unix which does the same thing. None of them perl-based, but they have both worked well for me at different times.
HTH,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||