Hi,

At Sat, 14 Feb 2009 15:09:46 +0900,
7stud -- wrote in [ruby-talk:328177]:
> That doesn't work for me:
> 
> r1test.rb
> --------
> puts "hello"
> puts x

require separates the scope, so local variables defined outside
are not accessible.

$ ruby -e 'x=10; eval(File.read($0 = ARGV.shift), binding)' r1test.rb
hello
10

-- 
Nobu Nakada