in reply to Sort of basic search engine/pattern matching problems

You should move your foreach loop inside your while loop. The problem is that your first query loops through all the lines of the dictionary file. Your second query does not loop through any lines of the file. Something like:
while ($line = <XX>) { for my $query (@query) { } }

Replies are listed 'Best First'.
Re^2: Sort of basic search engine/pattern matching problems
by bvulnerbility (Novice) on Apr 28, 2010 at 19:44 UTC
    Thanks everyone for your help. I'm really glad to have find you.
    I don't have the code to test with me now, but I'll let you know if I make it work tomorrow morning
    Thanks again..
    Giu