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

Unlikely story
$ perl -MHTML::TableExtract -e 1 Can't locate HTML/TableExtract.pm in @INC (@INC contains: C:/perl/5.10 +.1/lib/MSWin32-x86-multi-thread C:/perl/5.10.1/lib C:/perl/site/5.10. +1/lib/MSWin32-x86-multi-thread C:/perl/site/5.10.1/lib .). BEGIN failed--compilation aborted.

Replies are listed 'Best First'.
Re^2: Can't locate perl module in @INC
by Anonymous Monk on Jul 17, 2015 at 11:12 UTC
    Looks like you would have to specify the path that HTML::Module has been created. For example, if it's installed under C:/Perl64/site/lib/, then you'll have to use following header for it to work. use lib 'C:/Perl64/site/lib/'; use HTML::TableExtract; OR BEGIN {unshift @INC, 'C:/Perl64/site/lib/';} use HTML::TableExtract;