From: Simon Strandgaard Date: 2004-02-12T21:50:00+09:00 Subject: Re: (noob) cast string to array? On Thu, 12 Feb 2004 21:37:24 +0900, Gavin Sinclair wrote: > On Thursday, February 12, 2004, 11:09:58 PM, Simon wrote: > >>> I always feel unconfortable chaining (g)sub! since the result here *may* >>> be nil. >>> >> [snip] > >> I am curious to when 'nil' may be returned? > > Here you go: > > irb(main):001:0> "xyz".gsub!(/a/, "b") > => nil > Bommer, I feel sleepy :-) -- Simon Strandgaard