#!/usr/bin/perl
######################################################################
# lwpsimple.pl
######################################################################
# Perl Power! - Michael Schilli 1998
######################################################################

use LWP::Simple;

$url = "http://remote.host.com/dir/file.html";

                      # store page text in $doc
$doc = LWP::Simple::get($url); 

                      # output page on STDOUT
$rc  = LWP::Simple::getprint($url); 

                      # store page in file
$rc  = LWP::Simple::getstore($url, "localfile.html");

                      # load if modified
$rc  = LWP::Simple::mirror($url, "localfile.html");


