From: Doug Jolley Date: 2012-01-19T08:45:39+09:00 Subject: Understanding 'require' I am clearly missing something WRT 'require'. I have a program file (test1) which requires another file (test1a). My content, etc. is shown below. Why doesn't running test1 produce, 'Hello, world!' as output? Thanks for any input. ... doug $ ls test1 test1a.rb $ cat test1a.rb var1='Hello, world!' $ cat test1 #!/usr/bin/ruby require './test1a.rb' puts(var1) $ ./test1 ./test1:4: undefined local variable or method `var1' for main:Object (NameError) $ -- Posted via http://www.ruby-forum.com/.