in reply to Re: www::mechanize check if webpage has updated
in thread www::mechanize check if webpage has updated

the problem is that the page I want to verify is obtained through a submit_form. So even if I can verify after the http::response object is obtained its fine. Like maybe compare with a saved version
  • Comment on Re^2: www::mechanize check if webpage has updated

Replies are listed 'Best First'.
Re^3: www::mechanize check if webpage has updated
by perlpie (Beadle) on Sep 16, 2010 at 13:15 UTC

    Instead of a saved version, just store the hash of the saved version and do nothing if the hash is the same.

    Instead of hashing the whole page, just hash the portion(s) of the content that you care about. That way different advertisements or updates to the nav links in the header/footer won't throw you off (unless you care about those sorts of changes too).