From: botp Date: 2010-02-19T16:09:27+09:00 Subject: Re: Global variables usage On Fri, Feb 19, 2010 at 3:02 PM, di vi wrote: > I declared two files.One to hold the value of a global variable.And the > other to print it. > > > 1)to hold variables (var.rb) > > Code: > >    $foo = 500 > > > 2) to print the global variable (gprint.rb) > > Code: >    loop do >    puts $foo >    end where in this code (gprint.rb) does it say that you are accessing the file var.rb ? read on require and load... best regards -botp