in reply to my First HTML based script.
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";
|
---|