Can we call an array from one ruby script to another and access array
elements.?

for example : my first rb file

1.rb
$joe = "one"
$po = "two"
$so  = "three"
names = [ $joe, $po, $so ]
second rb file

2.rb
require "1"
$trial = names[1]
puts $trial
But this didnt worked. Any help plz.

-- 
Posted via http://www.ruby-forum.com/.