[prog] @INC in Perl

Dominik Schramm dominik.schramm at gmxpro.net
Mon Apr 26 12:42:59 EST 2004


David Sumbler <david at aeolia.co.uk> wrote:

> In a bash script, I have used the command 'lwp-request' to get the
> contents of a web-page.  This works fine.
> But if I add the option '-o text', I get this error message:
> Can't locate HTML/Parse.pm in @INC (@INC contains:
> [...]
> I imagine that I need to add this directory to @INC.  How do I do
> this?  (Sorry, I'm not familiar with Perl.)

I doubt that you need to add a directory manually. Chances are 
that HTML::Parse is really not installed. It's not part of libwww-net,
see this list of libwww components: 

To install this module, do (as root):

# perl -MCPAN -e 'install HTML::Parse'

or download HTML-Tree, which contains HTML::Parse from 
http://cpan.uwinnipeg.ca/dist/HTML-Tree, then unpack, and
in the new directory:

$ perl Makefile.pl
$ make
$ make test
# make install

hope this helps,

More information about the Programming mailing list