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

How can I convert a dos format text file to a unix format in a perl script?

Replies are listed 'Best First'.
Re: Convert text file format
by moritz (Cardinal) on Oct 19, 2010 at 19:21 UTC
Re: Convert text file format
by kcott (Archbishop) on Oct 19, 2010 at 19:15 UTC

    DOS format has CRLF ("\r\n") line endings. UNIX format has LF ("\n") line endings. So you effectively just need to substitute one for the other.

    -- Ken

Re: Convert text file format
by runrig (Abbot) on Oct 19, 2010 at 19:22 UTC
    You can probably use a dos2unix utility.