From: Xavier Noria Date: 2009-08-19T17:57:29+09:00 Subject: Re: fromdos dos2unix in ruby On Wed, Aug 19, 2009 at 9:14 AM, Robert Klemme wrote: >> If the program has to be portable then you need to deal with the >> spurious \015 that may come up. > > String#chomp does that nicely. Oh you are right. I thought chomp chomped the input record separator, but I see in the Pickaxe that's unless $/ has been untouched.