From: Jacob Fugal Date: 2005-12-22T10:00:21+09:00 Subject: Re: String > Integer Conversion Problem On 12/21/05, Timothy Hunter wrote: > Jacob Fugal wrote: > > begin > > one, two = ARGV.map{ |n| Integer(n) } > > rescue ArgumentError > > puts Usage > > exit > > end > > When the arguments to Integer are strings from the command line, yes. In > the general case Integer() can raise TypeError as well as ArgumentError, > for arguments like Integer([1,2]) True, but I *was* referring specifically to the command line; vis the OP's question, and evidenced by my use of ARGV. :) Jacob Fugal