Doh!

ack! who chopped my line ;)

this
Communication $grepTMPFILE | grep failure | wc -l
should have been
grep Communication $grepTMPFILE | grep failure | wc -l

the actualy sub of the code I am using is

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;


sorry for the confusion!

Reply via email to