$mech->form_number(0) is the first form,
$mech->form_number(1) is the second form,
and so on...

Good news ... I don't get the error anymore
Excellent.

but I nothing happens
Perfect!

I had the feeling that WWW::Mechanize should fire up the web browser
No, WWW::Mechanize acts like a web-browser, it doesn't run one.

If you got no errors along the way (and you actually had put something useful in those two regular expressions) you can be pretty sure it worked fine.

Update: Ah, I see you removed the regexp tests.
Those are there to see that the resulting page "looks like" the page you expect to see. Removing those tests stops you from knowing if your truly succeeded.

To be sure, consult the site you posted it to.

-David.


In reply to Re^5: use WWW::Mechanize or LWP to interface with WEB by erroneousBollock
in thread use WWW::Mechanize or LWP to interface with WEB by learnperl

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.