******
#!/usr/bin/perl
use LWP::Simple;
#Store the output of the web page (html and all) in content
my $content = get("http://www.url.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";
}
******
#!/usr/bin/perl
use LWP::Simple;
print "Content-Type: text/html\n\n\n";
my $content = get("http://www.url.org");
print $content;
open (OUT,">output.text");
print OUT $content;
close OUT;
__END__
*******
#!/usr/bin/perl
use lib '/var/www/cgi-bin/libwww-perl-5.65/lib';
use LWP::Simple;
$content = get ('http://www.url.com');
print "Content-type: text/html\n\n";
print "$content";
******
Google rocks!