From: Robert Klemme Date: 2008-04-07T20:24:42+09:00 Subject: Re: strange, non-repetitious error 2008/4/7, Pan Kracy : > Hello > > I have that exception sometimes: "can't convert false into Integer" > This error is non-repetitious. > This exception occur once in a while when I run progam on the same data. > > sample code: > > for z in 1..lines.length > line = lines[z-1] # this is the line where error occur > end > > Is it a ruby implementation problem? Most likely not. We can't say without seeing more code. What type of object is "lines"? Why don't you just do lines.each do |line| end ? Kind regards robert -- use.inject do |as, often| as.you_can - without end