use LWP 5.64; use URI; my $browser = LWP::UserAgent->new; # this is the URL at the form action field. my $url = URI->new( 'http://us.imdb.com/find' ); # makes an object representing the URL $url->query_form( # And here the form data pairs: 'q' => 'Gladiator' ); my $response = $browser->get($url); $outputfile = ">temp.htm"; if (open(MyOutputFile, $outputfile)) { print "OutputFile '",$outputfile,"' opened OK \n"; } else { print "Cannot open OutputFile '",$outputfile,"'\n"; exit; } print MyOutputFile $response->decoded_content; WaitForKey(); sub WaitForKey() { print "\nPress any key to continue..."; chomp($key = ); }