LWP is the perl library to acess the World Wide Web.
A short perl script to print out a web page is:
#!/usr/bin/perl -w
use strict;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new();
my $req = HTTP::Request->new( "GET", "http://whatever");
my $response = $ua->request( $req );
print $response->content();
An alternative method (TIMTOWTDI!) that doesn't use LWP at all is:
#!/usr/bin/perl -w
use strict;
print `lynx -source -dump http://whatever`;