From: Jeremy Bopp Date: 2010-11-30T23:38:34+09:00 Subject: Re: 'require' is not recognised On 11/30/2010 8:36 AM, Tara Keane wrote: > Sorry if I wasn't specific before > I'm in irb and as soon as I type the first line of code i.e. require > benchmark I get the error 'undefined local variable or method > 'benchmark' for main:Object > > Then I tried saving all the code in a text file and running it from cmd > prompt with Ruby test.rb and I got the same error. You need to put quotes around benchmark in your require statement. The require method takes a string: require "benchmark" -Jeremy