On Thu, Jun 21, 2001 at 02:58:02PM -0400, Yacketta, Ronald wrote:
> foreach (@output) {
>       foreach my $test(@lookFor) {
>               $results{$test}++ if /$test/igo;
> }
> 
> this should create a hash etc.. etc..
> to search for multiple words above (as you suggested?) I would
> 
> $results{$test}++ if /$test/i && /failure/i;

Ahh, I see.  Then yes, that would be the proper adaptation.  However, and
someone may have already covered this with you, unless the file you're
processing is guaranteed to always be small, sticking all of it into @output
is probably not the best of ideas.  If the output is that of a program,
recall my examples of using open for a program and filtering the ouput.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Reply via email to