Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Ruby Output Problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Ben Lovell, post: 4642674"] [Note: parts of this message were removed to make it a legal post.] gets adds a newline so you should use chomp. Also, string interpolation is usually preferable to concatenation. This example is better: name = gets.chomp puts "hello #{name}." sleep Ben [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Ruby Output Problem
Top