http://qs321.pair.com?node_id=751199


in reply to Re: chop and chomp
in thread chop and chomp

chomp function removes only line endings

Only for a very specific definition of line endings. That's misleading. It won't even remove a Windows line ending (CRLF) on a Windows machine by default. Nor would you want it to do so.