title: Accessing a variable declared in another rb file
body: <p>this is a begginer question about including .rb files. </p>
  
  <p>I would like to have access to an array declared in another rb file. My main program goes like this :</p>
  
  <pre><code>#!/usr/bin/env ruby
  load 'price.rb'
  [...]
  max_price = price[az][type] * 2
  [...]
  </code></pre>
  
  <p>and here is the price.rb :</p>
  
  <pre><code>price = {'us-east-1' =&gt; {'t1.micro' =&gt; 0.02, 'm1.small' =&gt; 0.08, 'c1.medium' =&gt; 0.165, 'm1.large' =&gt; 0.320 },
  'us-west-1' =&gt; {'t1.micro' =&gt; 0.02, 'm1.small' =&gt; 0.08, 'c1.medium' =&gt; 0.165, 'm1.large' =&gt; 0.320 },
  'eu-west-1' =&gt; {'t1.micro' =&gt; 0.02, 'm1.small' =&gt; 0.085, 'c1.medium' =&gt; 0.186, 'm1.large' =&gt; 0.340 }
  }
  </code></pre>
  
  <p>When I run the main script I get this error :</p>
  
  <pre><code>Error: undefined local variable or method `price' for main:Object
  </code></pre>
  
  <p>What do you think ?</p>