in reply to Converting DOS perl to Unix

Just to provide another option....

In many cases FTPing the file in ASCII mode will handle the CR/LF conversion for you.