coder45 has asked for the wisdom of the Perl Monks concerning the following question:
I have the www::mechanize module installed, I tried to install the formfiller module and the data::random 0.05 module as it required the formfiller module, I received this error msg:
C:\Perl\bin\WWW-Mechanize-FormFiller-0.05>perl makefile.pl Test::Inline 0.15_001 is nice for testing the examples, but not necess +ary Warning: prerequisite Data::Random 0.05 not found. Writing Makefile for WWW::Mechanize::FormFiller
I am using activeperl and did copy the formfiller directory after installation into the c:\perl\lib\www directory. www::mechanize has already been installed and I am trying to post to a forum with this code:
#! Perl\bin\perl -w use strict; use WWW::Mechanize; use HTML::TokeParser; my $username1 = 'guesthere53'; my $subject = 'interesting'; my $regex = 'viewtopic'; my $message = 'Roy keane was sacked'; my $agent = WWW::Mechanize->new(); $agent->get(my $url = 'http://www.kendaltownfc.co.uk/forum/posting.ph +p?mode=newtopic&f=1&sid=9996be5f86729fd29eb212ddfff4a2c5'); $agent->form(1); $agent->field("username", $username1); $agent->field("subject", $subject); $agent->field("message", $message); $agent->click();
it compiles but nothing is posted. I don't know if the formfiller module bad installation or data:random bad installation could have had an effect to the program not working, any suggestions as to how to get it to post will be greatly appreciated.
Edited by planetscape - added code tags and applied formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using www::mechanize to submit to a forum
by planetscape (Chancellor) on Nov 24, 2005 at 23:42 UTC | |
|
Re: using www::mechanize to submit to a forum
by marto (Cardinal) on Nov 24, 2005 at 23:27 UTC |