in reply to Re: Can't locate perl module in @INC
in thread Can't locate perl module in @INC

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

Replies are listed 'Best First'.
Re^3: Can't locate perl module in @INC
by toolic (Bishop) on Mar 27, 2010 at 23:12 UTC
    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.