From: James Edward Gray II Date: 2005-12-22T07:54:17+09:00 Subject: Re: String > Integer Conversion Problem On Dec 21, 2005, at 4:39 PM, Matthew Feadler wrote: > Below, you can see that I'm checking command-line arguments to the > program for various conditions. See if this gives you some ideas: if ARGV.all? { |n| n =~ /\A\d+\Z/ } puts "Usage..." exit else one, two = ARGV.map { |n| Integer(n) } end Hope that helps. James Edward Gray II