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

html..more tags get added
  • 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 marto (Cardinal) on Sep 16, 2010 at 12:37 UTC

    If you purely care about HTML tags use WWW::Mechanize's content method to get the page. Then you may want to use one of the HTML parsing modules to compare tags, or if what you're really trying to do is monitor for changes to static HTML content, sore and compare $mech->content() periodically for changes.</c>

      how do i compare?

        This should give you a basic idea:

        if ( $oldcontent eq $newcontent ){ print "Nothing new here!\n"; }else{ print "Something has changed!\n"; }