Antispam::Toolkit::Role::IPChecker - A role for classes which check whether an ip address is associated with spam
version 0.08
package MyIPChecker; use Moose; with 'Antispam::Toolkit::Role::IPChecker'; sub check_ip { ... }
This role specifies an interface for classes which check whether a specific ip address is associated with spam.
Classes which consume this method must provide one method:
This method implements the actual spam checking for an ip address. The ip address will be passed as a named parameter.
This role provides an around modifier for the $checker->check_ip() method. The modifier does validation on all the parameters, so there's no need to implement this in the class itself.
$checker->check_ip()
See Antispam::Toolkit for bug reporting details.
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2011 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Antispam::Toolkit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Antispam::Toolkit
CPAN shell
perl -MCPAN -e shell install Antispam::Toolkit
For more information on module installation, please visit the detailed CPAN module installation guide.