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`;

LightWeight Process, in Solaris lingo: the collection of data structures and state that form the kernel counterpart of a thread.

Log in or registerto write something here or to contact authors.