#!/usr/bin/perl -W
use LWP::Simple;
#Store the output of the web page (html and all) in content
my $content = get("http://www.yahoo.com"); 
if (defined $content)
{
    #$content will contain the html associated with the url mentioned above.
    print $content;
}
else
{
    #If an error occurs then $content will not be defined.
    print "Error: Get failed";
}
