title: Creating array names programmatically in Ruby
body: <p>I'm a noob programmer and am wondering how to create array names using a list of words from another array.</p>
  
  <p>For example, I would like to take this array:</p>
  
  <pre><code>array = ['fruits','veggies']
  </code></pre>
  
  <p>and turn it into something like this:</p>
  
  <pre><code>fruits = []
  veggies = []
  </code></pre>
  
  <p>What is the best way to do this in Ruby?</p>
  
  <p>Here is my shot at it, where I failed miserably:</p>
  
  <pre><code>variables = ['awesome', 'fantastic', 'neato']
  
  variables.each do |e|
    e = []
    e &lt;&lt; [1, 2, 3]
  end
  
  puts neato
  </code></pre>