From: "David A. Black" Date: 2008-05-31T19:08:21+09:00 Subject: Re: splitting help needed Hi -- On Sat, 31 May 2008, Siep Korteling wrote: > The method split splits up a string and it will put the parts in an > array. > If you don't specify what to split on, it will split on newlines. Not > what you want. How to make clear that you want to split on " "? > Just say split(" ") . Actually without an argument it will split on any amount of whitespace. I think you're thinking of how strings enumerate, which is (by default) as lines: "abc\ndef".to_a # ["abc\n", "def"] David -- Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin See http://www.rubypal.com for details and updates!