On 4/21/09 Tue Apr 21, 2009 3:27 PM, "hOURS" <h_o...@yahoo.com> scribbled:
> Hi all, > > The get function in the libwww-perl library would be really useful to > me, but I'm having problems making it work. When I use it in a > cgi script (it's ultimate destination) it fails. My browser > displays a generic error message which isn't very helpful. Trying > to figure this out I ran a script with get from my own computer. > I have two versions of Perl, 5.6 and 5.8. When I use the former, > downloaded from the cd that comes with the book Perl for Dummies, > 3rd edition. It works as advertised. But when I use the > later version of Perl, downloaded off a website, I get the following > message: > > Can't locate LWP/Simple.pm in @INC (@INC contains: .) at testC.pl line > 1. BEGIN failed--compilation aborted at testC.pl line 1. That indicates that LWP::Simple is not installed on your system. > Is the library something I would have had to download separately when I > upgraded to 5.8? Could the folks who host my website simply not > have the library? That seems odd. It's kind of basic, isn't > it? They are something > of a lame outfit, but not ridiculously so. They have sendmail and > let me telnet and stuff. Any clues or guesses people might have > about this would be helpful. Ultimately I suppose I'll have to > ask my host, but I don't really understand enough about libraries and > all to even ask an intelligent question. LWP::Simple may be used for web-scraping, which is not something web-hosting companies or some of their clients want to encourage. There are alternatives to LWP::SImple that might be installed: LWP::UserAgent WWW::Mechanize There may be others. I have not used any of them, so can't recommend any of them for a particular use. You can also try installing LWP::Simple yourself, if conditions permit. See the advice given by 'perldoc -q library' "How do I keep my own module/library directory?" -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/