From: Lyle Johnson Date: 2007-04-09T04:00:42+09:00 Subject: Re: what's the problem with array.include? On 4/8/07, music wrote: > Here is my code: > @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? Is there any chance that there's some additional whitespace around the e-mail address, either in the first file ("file.txt") or the log file ("mail.log")? That would probably be enough to cause include? not to find the match (since it's looking for an exact match).