in reply to Can't locate perl module in @INC

It seems like the file is located in the correct directory, and you are including it in your code properly with use. Did you check if you have read permissions on the c:/Perl/site/lib/HTML/ directory and the .pm file?

Open up the c:/Perl/site/lib/HTML/TableExtract.pm file in an editor to make sure it is not corrupted in any obvious way. Compare it against what you see on CPAN HTML::TableExtract via the "Source" link.

Do any of these work as expected from your command line:

perl -MHTML::TableExtract -e 1 perldoc -l HTML::TableExtract perldoc HTML::TableExtract

Update: I mistakenly had this line:

perl -l HTML::TableExtract

Replies are listed 'Best First'.
Re^2: Can't locate perl module in @INC
by pamartin (Novice) on Mar 27, 2010 at 22:52 UTC

    I can read HTML::TableExtract.pm in notepad++, and it looks just like the one on the web.

    perl -MHTML::TableExtract -e 1

    returns to command line with no error, no apparent effect

    perl -l HTML::TableExtract

    produces error message: "Can't open perl script HTML::TableExtract: Invalid argument"

    perldoc HTML::TableExtract

    works fine, displays documentation

      I had a typo in my post:
      perl -l HTML::TableExtract
      should have been:
      perldoc -l HTML::TableExtract
      In any case, it appears that the module is installed correctly. I expect the following code in a script to work just fine too (no error). Just put these 3 line in a .pl file, then execute it:
      use strict; use warnings; use HTML::TableExtract;

        Your three lines work just fine.