From: "Kroeger Simon (ext)" Date: 2005-09-22T16:59:39+09:00 Subject: Re: Parsing one-liners as to_f ignores leading whitespaces you can simplify the split call: w1=input_string.split(',').map{|x| x.to_f} cheers Simon > -----Original Message----- > From: Sean O'Halpin [mailto:sean.ohalpin@gmail.com] > Sent: Thursday, September 22, 2005 6:45 AM > To: ruby-talk ML > Subject: Re: Parsing one-liners > > w1=input_string.split(/,\s*/).map{|x| x.to_f} > >