Example 8-10. examples/network/mechanize.pl
#!/usr/bin/perl
use strict;
use warnings;
use WWW::Mechanize;
my $w = WWW::Mechanize->new();
$w->get('http://www.google.com/');
$w->submit_form(
fields => {
q => 'perl israel'
},
);
$w->follow_link( n => 5 );
print $w->title;