http://www.perlmonks.org?node_id=661770


in reply to Question about WWW::Mechanize

The very simplest way is to change the url:
use WWW::Mechanize; $mech = WWW::Mechanize->new(); $mech->get('file://localhost/tmp/bob.html'); $resp = $mech->submit();
Here the form is read from /tmp/bob.html.
-- gam3
A picture is worth a thousand words, but takes 200K.