From: Robert Klemme Date: 2006-09-24T19:45:16+09:00 Subject: Re: Help w/ Codegolf Total Triangles- reading input John Labovitz wrote: Additional note: it's probably better to use #scan instead of split because then you can make sure to only get the numbers: a = readlines.map {|line| line.scan(/\d+/).map! {|s| s.to_i}} Kind regards robert