From: Junkone Date: 2011-06-11T10:25:29+09:00 Subject: strange ruby error i get strange error test.rb.rb:14: syntax error, unexpected '}' makes no sense as the only time i use } is to close the each block. pl help require 'fastercsv' #put everything in an array array = FasterCSV.read("c:\\temp\\two.txt") seconds=0 lastminute=0 array.each{|row| minute=row[1].split(":")[1].to_i puts minute puts lastminute if(minute =lastminute) then puts "same as last minute" seconds=seconds+1 end if }