From: Seebs Date: 2010-02-11T14:57:26+09:00 Subject: Re: Need help with Code (Input Functionality) On 2010-02-11, Michael Brodeur wrote: > When I run the following code: > > puts 'What is your name?' > name = gets > puts 'What is your city?' > city = gets > puts 'What is your favorite color?' > color = gets > puts "Your name is #{name}.", "You live in #{city}.", "Your favorite > color is #{color}." > > --------------------------------------- > > The result I get in terminal is: > > --------------------------------------- > > Your name is (name input) Hmm, that's odd. My quick trial produces the "expected" output. I would guess that, for reasons too subtle for me to guess, you're ending up with (puts "Your name is #{name}."), ("You live in #{city.}"), ("Your favorite color is #{color}.") rather than a single expression (a puts with three arguments), but I can't imagine why. -s -- Copyright 2010, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!