From: "Glenn M. Lewis" Date: 2005-12-07T03:03:25+09:00 Subject: simple scope question Is it possible to place another file within the same scope as another file that loads it? For example, I can't get this to work: ----------------------------------------- #!/usr/bin/env ruby # file1.rb file1 = "something" ----------------------------------------- #!/usr/bin/env ruby # file2.rb load 'file1.rb' puts file1 ----------------------------------------- C:/>file2.rb C:/file2.rb:4: undefined local variable or method `file1' for main:Object (NameError) Of course, I could make them global variables, but it would be nice if I could load it in with the same scope. Any ideas? Thanks! -- Glenn Lewis