From: Brian Candler Date: 2008-10-17T05:05:46+09:00 Subject: Re: newbie adding to array question Incidentally, I was able to spot the errors very quickly without really having to think, but ruby will help you if you run it with the -w flag: ruby -w fib.rb or #!/usr/bin/ruby -w ... rest of code This gives a number of warnings when dubious code runs, in particular it would have told you where you had mistyped an instance variable name: fib.rb:10: warning: instance variable @fibresults not initialized fib.rb:22: warning: instance variable @iteration not initialized -- Posted via http://www.ruby-forum.com/.