in reply to Why chomp doesn't work?

How are you transferring the file from Windows to Unix? If via ftp, turn on ascii mode which will convert the end-of-line characters to whatever the local style is.

thor

Replies are listed 'Best First'.
Re^2: Why chomp doesn't work?
by kiat (Vicar) on Jun 13, 2004 at 23:08 UTC
    Ah, no wonder. I didn't have this problem when I used to use WS_FTP. I could choose ascii or binary or auto freely.

    Now, I use psftp to do the uploading. I remember reading in some documentation of psftp that files are transferred only in binary mode.

    Thanks for the input!