From: music Date: 2007-04-09T03:45:03+09:00 Subject: what's the problem with array.include? Here is my code: class MyNewClass @hash = {} @arr = [] @a = [] IO.foreach("file.txt") do |riga| codice,cognome,nome,servizio,mail = riga.chomp.split(/\t/) @hash.store("#{mail}","#{cognome} #{nome}") end IO.foreach("mail.log") do |riga1| if riga1.match(/Passed/) @a=riga1.scan(/<(.*?@.*?)>|\(\?\)/) @hash.each_key do |mail| if @a.include?(mail) puts "#{mail} found" elsif puts "not found!!!!" end end end end end @a.include?(mail) it seems don't work. I'm sure that there is at least one value true, but the result is always "not found". What is the problem?