> Also, correction posted by Jay, is not applicabile because we have more > lines containing "Virus" word and only one should be counted (***** Virus). > > Alex
And for posterity, i am answering myself:
elsif($prog eq 'hook') {
# Vexira antivirus
if($text =~ /^[\*]+ Virus\b/) {
event($time, 'virus');
}
}
Alex
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
