in reply to PERL5LIB-How does it work

Your error is that, in your program, you have the line:

use TagSet;

where you should have the line

use HTML::TagSet;

Then, the original setting of PERL5LIB would work as advertised. The package is named HTML::TagSet, so Perl goes looking for a file HTML/TagSet.pm below each entry in PERL5LIB (or rather, @INC, which gets amended by PERL5LIB.

Replies are listed 'Best First'.
Re^2: PERL5LIB-How does it work
by Anonymous Monk on Sep 18, 2007 at 18:22 UTC
    Thanks Corion.
    Actually I wasn't using the Tagset.pm. I encountered it while installing libwww-perl-5.808.tar.gz and it complained it couldn't find Tagset. I used find . -name "Tagset*" and got
    ./lib/perl5/site_perl/5.8.8/i486-linux-thread-multi/auto/HTML/Tagset
    ./lib/perl5/site_perl/5.8.8/HTML/Tagset.pm
    
    The first line referred to an empty directory. I'm not sure if this is a bug. If someone thinks it is a bug, perhaps they could report it.
    Thanks again.
    klee12