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


in reply to Re: Re: chomp() problems
in thread chomp() problems

Yup. Some like it hex... ;)

Update: Actually, what you wrote is EBCDIC compatible. It'll substitute DOS CRLF's on any system, be it an ASCII or an EBCDIC one. You're using discrete ordinals (hexadecimal ones, in your case) instead of the infamous logical symbols \r\n, and that's what makes your statement portable.

So long,
Flexx

PS: Someone downvoted this node (it's -1 by the time of this writing). Why? What did I do wrong here?