From: Thomas Luedeke Date: 2006-11-17T23:34:56+09:00 Subject: Nuby question - printing substring as non-ASCII I'm reading in a string of numbers, as follows: " 1 45.3456 " How do I write out the first non-whitespace element as a number? Ruby wants to express as it in ASCII, and the .to_i method doesn't seem to work on a substring. Thanks in advance. TPL -- Posted via http://www.ruby-forum.com/.