in reply to replacement for LWP::Simple ?
And I got a message:#!/usr/local/bin/perl -w my $myDocument; my $result; use lib '.'; use LWP::Simple; $myDocument = get "http://www.ecst.csuchico.edu/"; if ($myDocument) { # we got a response $result = $myDocument; } else { # Something went wrong $result = "<tt>There was a problem somewhere and I didn't get an ans +wer.</tt>"; }; print "Content-type: text/html\n\n"; print $result;
JacekThere was a problem somewhere and I didn't get an answer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: replacement for LWP::Simple ?
by Util (Priest) on May 15, 2002 at 02:04 UTC |