title: How Do You Put 'gets' Input Into An Array?
body: <p>Ruby noob here learning the ropes. I'm currently going through <a href="http://pine.fm/LearnToProgram/?Chapter=07" rel="nofollow">this tutorial</a> and am working on this exercise:</p>
  
  <blockquote>
    <p>Let's write a program which asks us to
    type in as many words as we want (one
    word per line, continuing until we
    just press Enter on an empty line),
    and which then repeats the words back
    to us in alphabetical order.</p>
  </blockquote>
  
  <p>I'm ignoring the alphabetical order part, for now.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>puts 'Hi, do you need something sorted?'
  yn = gets.chomp
  while yn != 'no'
    puts 'What else?'
    array = [gets]
    yn = gets.chomp
  end
  puts 'Here\'s what you told me: ' +array.to_s
  </code></pre>
  
  <p>I've tweaked this for a few hours. To prevent my laptop from breaking due to an act of frustration I'm taking a break. Can anybody with more experience, and possibly more patience, point out my errors?</p>