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


In reply to using www::mechanize to submit to a forum by coder45

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.