http://qs1969.pair.com?node_id=301715


in reply to my First HTML based script.

You can use LWP to do it. There is also a package called Mechanize on CPAN you can use. It is a layer over LWP. You may want to get this book http://www.oreilly.com/catalog/perllwp/. Shop around, it's cheaper on Amazon.

There's even a link with examples. http://examples.oreilly.com/perllwp/

This will grab the html from the google homepage.

use strict; use warnings; use LWP; my $browser; $browser = LWP::UserAgent->new() unless $browser; my $resp = $browser->get('http://www.google.com'); print "$resp->content\n";