From: John Joyce Date: 2007-03-09T23:49:46+09:00 Subject: Re: Arrays - Storing User Input space bar? you mean enter or return? It does exactly what it should do. you input , it outputs the same thing immediately. What is it that you are expecting it to do? On Mar 9, 2007, at 11:00 PM, woodyee wrote: > Easy one but I can't figure this out! I'm trying to ask someone to > type some stuff, and then at the end (when they press the spacebar > without typing anything), I want to display what they typed. > > Here's my code: > > > something = [] > puts "Say something..." > something = gets.chomp > puts something > > I'm seeing what I typed after I hit the spacebar. Any ideas? Thanks!! > >