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.
In reply to Re: replacement for LWP::Simple ?
by Anonymous Monk
in thread replacement for LWP::Simple ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |