Nobuyoshi Nakada wrote:
> Hi,
> 
> At Sat, 25 Apr 2009 07:43:28 +0900,
> Joe Williams wrote in [ruby-talk:334959]:
>> I am running into an issue where I have a script that takes two command 
>> line arguments and reads from stdin. It seems that gets is not getting 
>> to stdin because it is hitting ARGV first 
> 
> Kernel#gets is not a method to read from stdin.
> 
> Use $stdin.gets.

Thanks Nobuyoshi!

I used $stdin.gets. instead of gets. and that solved the problem I was 
facing!
-- 
Posted via http://www.ruby-forum.com/.