From: Brian Candler Date: 2010-09-26T15:54:35+09:00 Subject: Re: bug in gsub(?) Chad Perrin wrote: > I've wondered for quite a while what was the rationale for having \1 in > the first place. Ruby inherits a lot from Perl, and Perl from sed. Some of the Perlisms are IMO superfluous - in particular the Kernel methods which operate on $_, and the flip-flop conditional operators. Objects would be much tidier if they didn't inherit Kernel#gets, Kernel#gsub etc; and you'd avoid some confusing error messages like irb(main):001:0> 3.gsub(/a/,'b') NoMethodError: private method `gsub' called for 3:Fixnum -- Posted via http://www.ruby-forum.com/.