Net::SenderBase::Query - SenderBase query module
my $query = Net::SenderBase::Query->new( Transport => 'dns', Address => $ip, ); my $results = $query->results;
This module is a front-end to initiating the query.
new()
my $query = Net::SenderBase::Query->new( Transport => 'dns', Address => $ip, Host => 'test.senderbase.org', Timeout => 10, );
This method constructs a new query object. If an error occurs while constructing the query an exception will be thrown.
The default transport if not given is 'dns'. The transport is not case sensitive.
The Address attribute is required.
Address
The default Host is 'test.senderbase.org'.
Host
The default Timeout is 5 seconds.
Timeout
results()
my $results = $query->results();
This method returns a Net::SenderBase::Results object containing the data for this IP address. If there was no data available it returns undef. If an error occured obtaining the results an exception will be thrown.
Net::SenderBase::Results
To install Net::SenderBase, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SenderBase
CPAN shell
perl -MCPAN -e shell install Net::SenderBase
For more information on module installation, please visit the detailed CPAN module installation guide.