[San-Diego-pm] LWP::Simple

Joel Fentin joel at fentin.com
Sun Oct 17 01:10:06 CDT 2004

I can't get LWP::Simple to do anything. I've tried variations of the 
following. There is no error message, but $Buff is always empty. What 
don't I understand?

#!/perl/bin/perl -w
use strict;
BEGIN{use CGI::Carp qw(carpout fatalsToBrowser);carpout(\*STDOUT);$|=1;}

use LWP::Simple;
my $Buff;
$Buff = get(""); 
#personal server
#$Buff = get("http://fentin.com.index.html"); #internet
#die "Couldn’t get it!" unless defined $Buff;
die "could not get page: $LWP::Simple::error" if not defined $Buff;
die $Buff;


[Sat Oct 16 23:02:43 2004] [error] [client] 
C:/Apache2/cgi-bin/PacoWeb/SiteSearch.htm is not executable; ensure 
interpreted scripts have "#!" first line
[Sat Oct 16 23:02:43 2004] [error] [client] (9)Bad file 
descriptor: don't know how to spawn child process: 
Joel Fentin    tel: 760-749-8863    FAX: 760-749-8864
Contact me:    http://fentin.com/me/ContactMe.html
Biz:           http://fentin.com
Personal:      http://fentin.com/me/

More information about the San-Diego-pm mailing list