From: dagbrown@... (Dave Brown) Date: 2003-08-09T08:50:38+09:00 Subject: Re: =~ obsolete? In article , meinrad.recheis wrote: : hi, : this is a warning i got while playing around with yaml. : : ruby/lib/ruby/1.8/yaml.rb:28: warning: string =~ string will be obsolete; : use explicit regexp : : why?? It's string =~ string which is being obsoleted. If you need to match a string against a string, use string =~ Regexp.new(otherstring) instead. --Dave