use strict; use WWW::Mechanize; use HTTP::Cookies; my $outfile = "out1.htm"; my $url = "http://metexplore.toulouse.inra.fr/metexplore/index.php/2011-06-06-14-41- 10/choke-point-reactions"; my $name = "org"; #my $value="Bacillus anthracis(Strain:Ames Ancestor)MicroCyc"; my $value="1"; my $mech = WWW::Mechanize->new(); $mech->cookie_jar(HTTP::Cookies->new()); $mech->get($url); $mech->form_name('form'); $mech->select($name, $value); #$mech->select("select", $select); #$mech->select("$select", 1); $mech->click(); #$mech->follow_link(text => "click here", n => 1); my $output_page = $mech->content(); open(OUTFILE, ">$outfile"); print OUTFILE "$output_page"; close(OUTFILE);