title: Can you add to an array in Ruby whose name is dependent upon a variable?
body: <p>Let's suppose a store owner wants to know how well his products are selling around the world, and which are selling best where.</p>
  
  <p>He has the following data: |ID,Currency,Quantity,Location|</p>
  
  <p>Rather than iterate through the data for each currency (data set > 10,000), is there a way to put the data into arrays specific to the currency without explicit designation...i.e., is there a way to avoid </p>
  
  <pre><code>if curr == "USD"; USDid &lt;&lt; ID; USDquan &lt;&lt; Quantity
  elsif...
  </code></pre>
  
  <p>...and so on?  For the purposes of this question, assume the *id and *quan arrays exist for the currencies under observation.</p>
  
  <p>Is there some sort of regex trick that can look at the currency and put the data in the appropriate arrays?</p>