use ClamAV::Client;
# Try using socket options from clamd.conf, or use default socket:
my $scanner = ClamAV::Client->new();
# Scan a stream, i.e. read from an I/O handle:
my $result = $scanner->scan_stream($handle);
# $result is the name of a virus signature, or undef
die "infected" if $result;
1 回答
模块ClamAV::Client似乎提供了使用scan_stream method扫描流的方法 .
以下是我认为这些文档在文档中混淆不清的方式:
请注意,我还没有尝试过(还) .