From: "Brett H. Williams" Date: 2003-08-12T03:31:32+09:00 Subject: Re: ruby 1.8.0 and =~ On Aug 12, Mark Probert wrote: > arr.each { |item| > if item =~ /blah/ > info = item.split(/:/) > @store[key] = "#{val}:#{info[1].strip}:" > end > } This code works fine in 1.8.0. What gives the waring is: arr.each { |item| if item =~ "blah" # see string on rhs of String#=~ info = item.split(/:/) @store[key] = "#{val}:#{info[1].strip}:" end } Just make sure you use a Regexp on the right side of a =~.