From: Lloyd Zusman Date: 2004-07-14T18:51:51+09:00 Subject: Re: String.split Mark Hubbart writes: > On Jul 13, 2004, at 9:03 PM, Bill Kelly wrote: >> >> [ ... ] >> >> /(?> >> ...Maybe there's another way to do it... If anybody knows >> I'd like to learn... > > as of now, this works: > > irb(main):001:0> " spaces of doom ".split(nil) > => ["spaces", "of", "doom"] > > Why shouldn't nil be the only special case? If the $variable is set to > nil, it uses this kind of split anyway. > > And it's no more characters to type than " " ;) > > Mark ... and the following has even fewer characters to type: irb(main):001:0> " spaces of doom ".split() => ["spaces", "of", "doom"] -- Lloyd Zusman ljz@asfast.com God bless you.