From: Ammar Ali Date: 2010-11-17T17:30:44+09:00 Subject: Re: gets() not stopping to accept input On Wed, Nov 17, 2010 at 9:45 AM, Rubist Rohit wrote: > The code I have shown in my original post is from the book: "The Book of > Ruby". I tried double quotes also, but it didn't work. STDIN is the default, so it's optional. The double quotes are required for interpolation to take place. If the variable name = 'Someone' With double quotes >> puts "Hello #{name}" Hello Someone With single quotes >> puts 'Hello #{name}' Hello #{name} I think the problem is in the way you are running the script. What OS are you running on and how are you invoking the script? Regards, Ammar