From: matz@... (Yukihiro Matsumoto) Date: 2001-10-30T15:45:06+09:00 Subject: [ruby-talk:23812] Re: chop and chomp Hi, In message "[ruby-talk:23637] Re: chop and chomp" on 01/10/28, Alan Moore writes: |One thing you might do is to have chomp use the value of '$/' |only if it's _not_ one of the standard line separators ("\n", |"\r\n", or "\r"). If it does hold one of those values, chomp |would look for all three. Then you could deprecate the use of |'$/' with chomp and phase it out over a couple of releases. |And the same goes for each_line, of course. Since "$/"'s default value is '\n', I'm going to treat it specially; if '$/' (or the value of optional argument to chomp) is '\n', chomp will do smart chomp. matz.