From: Michael Brodeur Date: 2010-02-11T14:17:32+09:00 Subject: Need help with Code (Input Functionality) 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) . You live in (city input) . Your favorite color is (color input) . ---------------------------------------- (Please not that each variable has been assigned and entered by the user) I'm wondering if the terminal is ALSO accepting the "\n" keystroke as part of the input? And if that's why the period is being pushed down a line, how do I fix this problem? Thanks! -SS -- Posted via http://www.ruby-forum.com/.