Clamd
view release on metacpan or search on metacpan
lib/Clamd.pm view on Meta::CPAN
sub new {
my $class = shift;
my (%options) = @_;
$options{port} ||= '/tmp/clamd';
$options{find_all} ||= 0;
return bless \%options, $class;
}
=head2 ping()
Pings the clamd to check it is alive. Returns true if it is
alive, false if it is dead. Note that it is still possible for
a race condition to occur between your test for ping() and
any call to scan(). See below for more details.
=cut
sub ping {
my $self = shift;
my $response;
eval {
my $conn = $self->_get_connection();
( run in 1.734 second using v1.01-cache-2.11-cpan-39bf76dae61 )