From: Simon Strandgaard Date: 2004-04-01T19:14:29+09:00 Subject: Re: string !~ string, not possible in cvshead On Thu, 01 Apr 2004 17:22:36 +0900, Gennady Bystritsky wrote: > On Mar 31, 2004, at 7:49 PM, Simon Strandgaard wrote: > >> While upgrading and reinstalling misc modules I regulary use, I bumped >> into this construction. I don't know if the recent switch from GNU to >> Oniguruma has broken anything ? >> >> Any reason that String isn't allowed anymore ? > > This behavior was kind of "promised" starting from 1.8: > > [mac.gfbm:51]bystr> irb > irb(main):001:0> "aaa" !~ "bbb" > (irb):1: warning: string =~ string will be obsolete; use explicit regexp > => true > irb(main):002:0> > [mac.gfbm:52]bystr> ruby -v > ruby 1.8.1 (2003-12-25) [powerpc-darwin] > Thanks for the answer. -- Simon Strandgaard