From: Dan Debertin Date: 2003-08-09T06:30:22+09:00 Subject: Re: =~ obsolete? "meinrad.recheis" writes: > ruby/lib/ruby/1.8/yaml.rb:28: warning: string =~ string will be > obsolete; use explicit regexp > > why?? > > without =~ matching strings will not be so much fun again :( . This is the case that's becoming obselete: irb(main):001:0> "foo" =~ "foo" (irb):1: warning: string =~ string will be obsolete; use explicit regexp This should still work: irb(main):002:0> "foo" =~ /bar/ => nil # No warning. Dan -- /^Dan Debertin$/ | airboss@nodewarrior.org | www.nodewarrior.org |