Home > Archive > PERL Miscellaneous > March 2004 > Question Regarding LWP
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Question Regarding LWP
|
|
| Douglas Pollock 2004-03-30, 4:35 pm |
| I'm using ActiveState Perl on a Windows XP Professional computer. It has
libwww-perl loaded.
I just bought the book Spidering Hacks By Kevin Hemenway, Tara Calishain.
One of their examples includes the following partial code:
--------------------------------
if ($libloc = $ENV{'LIBWWW_PERL'}) { unshift(@INC, $libloc); }
require "getopts.pl";
require "www.pl";
require "wwwurl.pl";
require "wwwerror.pl";
--------------------------------
When I try to run the script it complains that it can't find www.pl,
wwwurl.pl, and wwwerror.pl. I'm new to PERL so I not clear on how to find
the modules. I did a search on CPAN for the module www.pl and it says it
can't find it. I did a search on the ActiveState web site and it did not
find it. Can anyone tell me where www.pl, wwwurl.pl, and wwwerror.pl come
from and how to install?
Thanks
Doug
| |
| Douglas Pollock 2004-03-30, 5:39 pm |
| My mistake the code was not from the Spidering Hacks book but actually came
from
http://ftp.ics.uci.edu/pub/websoft/libwww-perl/src/get
and the www.pl, wwwurl.pl, and wwwerror.pl were located on the site.
Doug
"Douglas Pollock" <pgmr400@hotmail.com> wrote in message
news:ydlac.362124$Po1.20918@twister.tampabay.rr.com...
> I'm using ActiveState Perl on a Windows XP Professional computer. It has
> libwww-perl loaded.
>
> I just bought the book Spidering Hacks By Kevin Hemenway, Tara Calishain.
>
> One of their examples includes the following partial code:
>
> --------------------------------
> if ($libloc = $ENV{'LIBWWW_PERL'}) { unshift(@INC, $libloc); }
>
> require "getopts.pl";
> require "www.pl";
> require "wwwurl.pl";
> require "wwwerror.pl";
> --------------------------------
>
> When I try to run the script it complains that it can't find www.pl,
> wwwurl.pl, and wwwerror.pl. I'm new to PERL so I not clear on how to find
> the modules. I did a search on CPAN for the module www.pl and it says it
> can't find it. I did a search on the ActiveState web site and it did not
> find it. Can anyone tell me where www.pl, wwwurl.pl, and wwwerror.pl come
> from and how to install?
>
>
> Thanks
> Doug
>
>
>
| |
|
|
| Uri Guttman 2004-03-30, 5:39 pm |
| >>>>> "GH" == Gunnar Hjalmarsson <noreply@gunnar.cc> writes:
GH> Douglas Pollock wrote:[color=darkred]
GH> That code is almost 10 years old.
GH> You told us that you are new to Perl (not PERL). Please use books and
GH> documentation from this century. ;-)
s/century/millennium/ ;
uri
| |
| Uri Guttman 2004-03-30, 8:34 pm |
| >>>>> "DP" == Douglas Pollock <pgmr400@hotmail.com> writes:
DP> I just bought the book Spidering Hacks By Kevin Hemenway, Tara Calishain.
DP> One of their examples includes the following partial code:
DP> if ($libloc = $ENV{'LIBWWW_PERL'}) { unshift(@INC, $libloc); }
DP> require "getopts.pl";
DP> require "www.pl";
DP> require "wwwurl.pl";
DP> require "wwwerror.pl";
GACK!! that is such old perl4 stuff. if the rest of the book is like
that then burn it. get Perl and LWP which uses LWP itself, not some
ancient crap. the libwww that activestate has is LWP.
also the LWP docs themselves are fairly decent. check out its
cookbook.
uri
|
|
|
|
|