Net::Mollom::ContentCheck
The results of the mollom.checkContent XML-RPC call.
mollom.checkContent
my $mollom = Net::Mollom->new(...); my $check = $mollom->check_content( post_title => $title, post_body => $body, ); if( $check->is_spam ) { warn "someone's trying to sell us v1@grA!" } elsif( $check->quality < .5 ) { warn "someone might be trying to flame us!" }
You should not construct an object of this class by yourself. Instead it should be done by Net::Mollom's call to check_content(). After you get one, these are the methods you can call.
check_content()
Returns true if the content sent was spam.
Returns true if the content sent was not spam.
Returns true if Mollom isn't completely sure if this comment was spam or ham.
A real number between 0 and 1 that's shows the quality of the content posted. 0 being the worst and 1 being the best.
The ID of the Mollom session that this check was part of. This can be saved and used later (ie, you need to call send_feedback for some content after some time in the future).
send_feedback
To install Net::Mollom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Mollom
CPAN shell
perl -MCPAN -e shell install Net::Mollom
For more information on module installation, please visit the detailed CPAN module installation guide.