On Apr 8, 2007, at 8:45 PM, music wrote: > @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) <snip> > @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? @a stores something different from what you seem to think, print it. -- fxn