From: Abder-Rahman Ali Date: 2010-09-03T00:54:30+09:00 Subject: Re: uninitialized constant NArray (Name Error) @Savard. This works if working through irb. If I put the script in a .rb file "narray.rb", I get the following: C:\Users\Abder-Rahman\Desktop\Research>ruby narray.rb ./narray.rb:2: uninitialized constant NArray (NameError) from narray.rb:1:in `require' from narray.rb:1 Why is that? Why cannot I get it running as throigh irb? Of I insert require "rubygems", I get the following: C:\Users\Abder-Rahman\Desktop\Research>ruby narray.rb ./narray.rb:3: uninitialized constant NArray (NameError) from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from narray.rb:2 -- Posted via http://www.ruby-forum.com/.