From: matz@... (Yukihiro Matsumoto) Date: 2001-10-27T06:13:27+09:00 Subject: [ruby-talk:23534] Re: chop and chomp Hi, In message "[ruby-talk:23298] Re: chop and chomp" on 01/10/25, Alan Moore writes: |>OK, so what do you think the chomp behavior should be? |>I mean the "detailed" behavior. | |If no argument is provided, it should look for "\r\n", |"\n", or "\r" (in that order) at the end of the line |and chop it off if it finds it. AFAIK, "\r", like |"\n", is never used as anything but (part of) a line |separator, so that shouldn't cause any problems--but |please correct me if I'm wrong. I don't think chomp |should bother with $/ at all. Ignoring '$/' at all is backward incompatible. I like your proposed behavior, but I'm not sure "when" we can apply your behavior, in compatible fashion. I'm (kinda) responsible to crash as few programs as possible when I change Ruby. I admit I often fail though. ;-( matz.