From: matz@... (Yukihiro Matsumoto) Date: 2001-10-25T17:22:17+09:00 Subject: [ruby-talk:23270] Re: chop and chomp Hi, In message "[ruby-talk:23046] Re: chop and chomp" on 01/10/23, Alan Moore writes: |> You can specify `rs' for #chomp, $/ is just the default value | |I know that. What I'm saying is that I shouldn't have to |specify it--chomp should recognize any of "\r\n", "\n" or |"\r" as a line ending and chop it off. Just trying to match |the value of $/ is too clumsy when the line separator can |change from one document to the next, or even from one para- |graph to the next. Ruby's chop method is much more useful |than Perl's because of that one little enhancement. Why not |enhance chomp as well? OK, so what do you think the chomp behavior should be? I mean the "detailed" behavior. matz.