From: Tom Rauchenwald Date: 2006-07-08T01:16:32+09:00 Subject: Re: newbie Q why doesn't this NEXT work dave rose writes: > the data: -17780 51697-62657 51697-62651 date: 2453507 << good data > error in data file: > -17737,147401-93780 > 147401-93780,147401-93780,12/28/2004 > ruby code: > cppewq=[] > CSV.open("neat.txt","r") do |row| > hh=row[3] > h1=row[1] > h2=row[2] > h3=row[0] > next if hh=nil || h1=nil || h2=nil || h3=nil Comparison is ==, not = in Ruby. Here you would assign nil. Tom