in reply to WWW::Mechanize reading HTML
Have you looked at the WWW::Mechanize documentation? Especially the ->update_html method sounds like what you need.