There is no module named Mech::Perl. If you are talking about WWW::Mechanize as your unshown code seems to imply, please read WWW::Mechanize to find what attributes the parameters for ->follow_link act on. You will find that none act on the onClick attribute and none of them act on <input... elements. Please also review the documentation of ->tick to find out what its arguments are and how they work. Especially, passing the result of a regular expression match makes little sense, and there is no hint in the documentation that passing a regular expression like qr/\s/ would be supported.

It would help us to help you better if you provided a short, 10-20 line, self-contained working example that reproduces the error. For example something like the following:

#!perl -w use strict; use WWW::Mechanize; my HTML = <<HTML; <html> <body> <form> <input ... </form> </body> </html> HTML my $mech = WWW::Mechanize->new(); $mech->update_html($html); $mech->tick(...);

In reply to Re: Mech::Perl and following links w/ null value by Corion
in thread Mech::Perl and following links w/ null value by Anonymous Monk

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.