From: John Sheahan Date: 2007-12-03T03:26:26+09:00 Subject: Re: Running -r in IRB Marc Heiler wrote: >> I'm quite sure that you're being instructed to run irb with -r and not >> to type -r into irb. I.e: >> irb -rmyrubyfile > > Or, if you are in irb, just do > load 'myrubyfile' > > or in your case > load '99bottles.rb' > > Normally -r indicates some command line switch,i.e. in use with > ruby -r blablabla > not something you run inside irb. Thanks....that seemed to work. I get: irb(main):010:0> load 'c:\ruby4rails\99bottles.rb' => true The book then tells me to create a new instance of Wall and feed it the number 10, which I do here: irb(main):011:0> other_wall=Wall.new(10) => # irb(main):012:0> I'm wondering why I don't get the program to run and count the 99 bottles of beer starting with 10 in this case? thanks for the quick replies jackster (I checked the errata for the book on the website and there is nothing listed at all for this chapter) -- Posted via http://www.ruby-forum.com/.