in reply to Why chomp doesn't work?

You can convert the file to Unix style by using the command dos2unix
-T