From: Nobuyoshi Nakada Date: 2009-02-14T15:20:49+09:00 Subject: Re: how to require more than one thing from the command line 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