From: ts Date: 2001-04-09T23:37:18+09:00 Subject: [ruby-talk:13577] Re: about the the scope of a local variable >>>>> "R" == Richard P Groenewegen writes: R> not so: if I put `a = 1' before the require line, the value of a stays R> 1. Is there any way to access the `a' in atest.rb? Try this : +----------------+ +--------------------+ | file: atest.rb | | file: btest.rb | +----------------+ +--------------------+ | puts a | | a = 12 | a = 24 | | require 'atest.rb' | | puts a | | puts a | +----------------+ +--------------------+ Guy Decoux