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