Posted on 2008-07-31 18:56:59-07 by voltoukias
WWW-Mechanize-SpamCop on WindowXP with ActivePerl

I downloaded WWW-Mechanize-SpamCop and ActivePerl, and proceeded under the cmd.exe prompt like so:

perl Makefile.PL
nmake
nmake test
nmake install

All successful, but how do I apply this to my spamcop's pending reports?

I'm not trying to learn perl, though I'm an avarage computer user with some competence in c++ and pascal.

I just really want to get this WWW-Mechanize-SpamCop think working, and some usage instructions would be great.

Please Help!

Direct Responses: 8602 | Write a response
Posted on 2008-08-17 19:56:23-07 by voltoukias in response to 8466
Re: WWW-Mechanize-SpamCop on Windows XP with ActivePerl
bump

Seriously! am I the only person in need of this?

I could really use some assistance.
Direct Responses: 8603 | Write a response
Posted on 2008-08-17 20:08:35-07 by adamowski in response to 8602
Re: WWW-Mechanize-SpamCop on Windows XP with ActivePerl

I'm using this script:

#!/usr/bin/perl -w use Data::Dumper; use LWP::DebugFile ('+'); use WWW::Mechanize::SpamCop; $s = WWW::Mechanize::SpamCop->new( login => 'MY_SPAMCOP_EMAIL_ADDRESS', passwd => 'MY_SPAMCOP_PASSWORD' ); my @result = $s->report_all; print "Reported spams: ".$result[0]."\n"; print "Dropped spams: ".$result[1]; print "\n\n";

Try it.

Direct Responses: 8624 | Write a response
Posted on 2008-08-19 04:49:29-07 by voltoukias in response to 8603
Re: WWW-Mechanize-SpamCop on Windows XP with ActivePerl

thank you very much adamowski, that gave me the right idea, and i've reported a mail, yay. what i realised was that i had to use the line:

perl myscript.pm

to execute my script, which was just:

use WWW::Mechanize::SpamCop; $s = WWW::Mechanize::SpamCop->new( login => 'MY_SPAMCOP_EMAIL_ADDRESS', passwd => 'MY_SPAMCOP_PASSWORD' ); $s->report_one; $s->report_all;

to think it was that simple. it would have really helped if another section like "execution" was was added alongside the "installation" section of WWW-Mechanize-SpamCop, then i would have been under way a lot sooner.

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.