Chris Hulan wrote: > ... >> >> d = Array2D.new(m+1,n-1) > > You have 'n-1' here, but subsequently use indexes up to n. > > cheers Thanks for the reply. Yes, but when I change that, I just get an error... (that's why I had originally changed it) -- Posted via http://www.ruby-forum.com/.