>>>>> "R" == Richard P Groenewegen <rpg / xs2all.net> 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