From: Andrew Johnson Date: 2006-03-30T02:33:41+09:00 Subject: Re: Regexp gotcha On Thu, 30 Mar 2006 02:24:41 +0900, Jacob Fugal wrote: [snip] > However, trying string ~ another_string gives me an exception in irb: > > $ irb > >> "looking for bob..." =3D~ "bob" > TypeError: type mismatch: String given > from (irb):1:in `=3D~' > from (irb):1 > > Is this a documentation bug? Yes, I submitted a patch last week via the rubyforge bug form. Basically, String =~ String was deprecated in 1.8.0 / 1.8.1 (generated obsolete warning), and generates a TypeError since 1.8.2. I have no idea on the status of the patch. andrew -- Andrew L. Johnson http://www.siaris.net/ It's kinda hard trying to remember Perl syntax *and* Occam's razor at the same time :-) -- Graham Patterson