On 04.11.2007 13:08, sepp2k / googlemail.com wrote:
> Robert Klemme wrote:
>> On 04.11.2007 11:43, sepp2k / googlemail.com wrote:
>>> If you specify a command line parameter, Kernel#gets treats that as a
>>> file name and tries to read from that file instead of stdin.
>> I am sorry, but this is plain wrong.
>>
>> http://ruby-doc.org/core/classes/Kernel.html#M005995
> 
> I'm sorry, maybe I'm a little slow, but isn't "Returns (and assigns to $_) the 
> next line from the list of files in ARGV (or $*), or from standard input if 
> no files are present on the command line." basically what I said?
> Or are you refering to the fact that my phrasing made it sound as if gets only
> cared about the first command line parameter?

I read your statement to mean that an argument to gets is treated as a 
file name.  As is obvious now you were referring to the script's 
arguments and not gets's arguments.  My apologies.

Kind regards

	robert