From: Chris Bond Date: 2007-10-13T04:30:06+09:00 Subject: Re: adding array of numbers ok, so I got the thing to work, with just arrays, but now i want to ask the user if he/she wants to go through the set again, with 'yes' and 'no' as the values, and what I end up with is an infinite loop. while gets != 'no' einstein.input.each_index { |x| einstein.c_weights(einstein.input[x], einstein.weights, matrix_ans[x][0]) } end I was wandering if having the ARGV[0] as the filename has anything to do with it. Attachments: http://www.ruby-forum.com/attachment/640/somefile.rb -- Posted via http://www.ruby-forum.com/.