- or download this
foreach(qw(name to file action virus))
{
$gCurRec->{$_}='';
}
- or download this
my @columns = qw(name to file action virus);
@{ $gCurRec }{ @columns } = ('') x @columns;
- or download this
$gCurRec->{name}=$1 if (/^From:\s*(.+?)\s*$/);
$gCurRec->{to}=$1 if (/^To:\s*(.+?)\s*$/);
- or download this
/^(\w+):\s*(.+?)\s*$/ and $gCurRec->{$1} = $2;
- or download this
#!/usr/bin/perl -w
use strict;
...
Action: The uncleanable file is deleted.
Virus: WORM_KLEZ.H
----------------------------------