Tom Rauchenwald
7/7/2006 4:17:00 PM
dave rose <bitdoger2@yahoo.com> 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