Gossamer Forum
Home : General : Perl Programming :

LWP::Simple

Quote Reply
LWP::Simple
Hi all,

Code:
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
use LWP::Simple;
#use Simple;
my $url = "http://yahoo.com";
$content = get($url);
print "Content-Type:text/html\n\n";
print $content;

I can run this in command line. But when I try to run via browser it return:
[Thu Feb 27 02:41:06 2003] Simple.pm: Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/local/lib/perl5/5.00503/i386-freebsd /usr/local/lib/perl5/5.00503 /usr/local/lib/site_perl /usr/local/lib/site_perl .)

Please advice me how to correct this.

Thanks,

Beck
Quote Reply
Re: [Beck] LWP::Simple In reply to
I'm not sure why it would run from the command line. That error means LWP::Simple isn't installed in the perl lib tree.