NAME

File::Scan - Perl extension for Scanning files for Viruses

SYNOPSIS

use File::Scan;

$fs = File::Scan->new([, OPTION ...]);
$fs->scan([FILE]);
if(my $e = $fs->error) { print "$e\n"; }

DESCRIPTION

This module is designed to allows users to scan files for known viruses. The purpose is to provide a perl module to make plataform independent virus scanners.

METHODS

new([, OPTION ...])

This method create a new File::Scan object. The following keys are available:

extension => 'string'

add the specified extension to the infected file

move => 'directory'

move the infected file to the specified directory

copy => 'directory'

copy the infected file to the specified directory

delete => 1

delete the infected file

scan([FILE])

This method scan a file for viruses and return the name of virus if a virus is found.

error()

This method return a error message if a error happens.

AUTHOR

Henrique Dias <hdias@esb.ucp.pt>

CREDITS

Thanks to Rui de Castro, Sergio Castro and Ricardo Oliveira for the help.

Thanks to Fernando Martins for the personal collection of viruses.

SEE ALSO

perl(1).