Thanks for that. I can now see that the chomp removes just the Ascii 10 character.
However, my problem concerns writing a file so that when I read it back in there will not be the ASCII 13 character present.This is because a UNIX text file does not want the ASCII 13 character to be there.