Hi all,
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
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