|Syntactic Confectionery Delight|
Load module from local dirby Anonymous Monk
|on Sep 24, 2018 at 18:01 UTC||Need Help??|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to use a module from CPAN.use Excel::Writer::XLSX;
I installed the module locally with commandperl -MCPAN -Mlocal::lib -e 'CPAN:install(Excel::Writer::XLSX)'
I could locate the required module in the dir~/perl5/lib/perl5/Excel/Writer/XLSX.pm
So, I add the lib dir to @INC with commanduse lib '~/perl5/lib';
But, I get the errorCan't locate Excel/Writer/XLSX.pm in @INC (@INC contains: ~/perl5/lib ...
I could not figure out the exact dir location, so I tried
Any help in pointing out the mistake is much appreciated.