I need to understand the behavior of WWW::Mechanize.

If I "get" a URL in Mechanize and then "submit" that form, is the updated page now bound to the same mech variable?

I keep finding examples that use HTML::Response to work with the results of a submit so it's unclear to me if the Mechanize variable I do the initial submit with is updated or somehow stale after I submit it.

The issue I have is that I need to submit a page , get the response back and then submit the second page to confirm the transaction I'm trying to automate.

I'm wondering if I need to take the HTML::Response and somehow find a way to Submit it , or can I just verify the content of the original Mechanize variable after I submit it the first time and simply submit it again.

Thanks for any help - ShipMyPants

In reply to Working with Mechinaze and Responses by ShipMyPants

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.