http://search.cpan.org/~jesse/WWW-Mechanize-1.72/lib/WWW/Mechanize/Examples.pod
		
#!/usr/bin/perl
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
$url = 'http://localhost/form.php';
$mech->get( $url );
  $mech->submit_form(
        form_number => 1,
        fields      => {
            fname    => 'www',
            lname    => 'mechanize',
        }
    );
print $mech->content();