Le 5 janvier 2008 11:58, James Tucker a ˝─rit :

> On 4 Jan 2008, at 17:34, ian / frogcottage.demon.co.uk wrote:

>> Hi thanks for the answers. I removed the stdin line and replaced it
>> with gets, and it still has the same error.
> 
> gets *is* $stdin.gets.

I know it has no bearing to your current point, but this is unaccurate.

Kernel.gets will read from a file if there's something specified on the
command line (ARGV).

I've been bitten by this recently : I had a small script asking
questions from the command line ; then, I tried to add somes switches to
it, and I wondered why I had the message "in `gets': No such file or
directory - -t (Errno::ENOENT)"...

Fred
-- 
Full-size scottish highland pipes are loud enough to fall into the
category of 'weaponry', especially if they're played poorly, but it's an
analogue of heavy metal if they're played well.
                                           (Gary S. Callison in the SDM)