On Aug  9, 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??
> 
> without =~ matching strings will not be so much fun again :( .
> 
> -- 
> - mr
> 

=~ isn't going away.

=~ "something" is going away.

What you want to do is always match a regex, i.e.:

variable =~ /something/