in reply to Re^2: Deleting EOF from a file
in thread Deleting EOF from a file

It's not quite true, e.g.

perl -pi -e "s/\r\n/\n/g" file
would not work on Windows :)

Upd: my bad, "s/\r\n//g" would work anyway. :(