kidd has asked for the wisdom of the Perl Monks concerning the following question:
Here is what it does:my @active = &readMembers; my(@found); $Input{'query'} =~ s/\s/%%/gi; my @searchWords = split("%%", $Input{'query'}); foreach my $active(@active){ my $newd = lc($active); foreach my $searchWord(@searchWords){ $searchWord = lc($searchWord); push(@found, $active) if grep { /$searchWord/ } $ne +wd; } }
The Problem
When I read @found it only has the last found item...
Could someone tell me whats wrong?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Coding problem
by mkmcconn (Chaplain) on Aug 07, 2002 at 17:03 UTC | |
Re: Coding problem
by Tomte (Priest) on Aug 07, 2002 at 18:05 UTC | |
by kidd (Curate) on Aug 07, 2002 at 21:21 UTC |