Hi Kevin,


Zembower, Kevin wrote:
I've written a program to process a text file. The input file is generated on a 
DOS computer and transferred to my Linux host. Most of the time, the operator 
remembers to transfer it BINARY and not ASCII, so that the DOS line endings are 
preserved. However, occasionally, they forget, and the program doesn't produce 
any output.

So you are using Linux? I'm not sure if you mind an alternative, non-Perl solution, but what I use is the Linux program "flip", which I believe is a more recent cousin of the programs unix2dos and dos2unix. If you want more info about this program, send me a private e-mail -- but it is available as a debian package for at least debian and ubuntu. It will do the line conversions and you don't have to write anything new...

Ray



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to