From: Kevin Olbrich Date: 2005-09-22T13:38:34+09:00 Subject: Parsing one-liners The problem: read in a string containing an arbitrary number of comma separated numbers and convert it to an array of numbers. It seems like this could be a one-liner, but the best I can get is two... w=input_string.split(/,\s*/) w.each_index {|n| w[n]=w[n].to_f} Anyone know a one-liner for this? _Kevin