note
Haarg
<p><code>local::lib</code> has special support for <code>~</code> paths. If you want to use the same paths with <code>lib</code>, you'll want to use <code>$ENV{HOME}</code>.</p> Also, while the "base" directory used by <code>local::lib</code> is <code>~/perl5</code>, that isn't the include path for libraries. It includes other directories like <code>bin</code> and <code>man</code>. The actual library path is in the <code>lib/perl5</code> subdirectory. These paths are not entirely determined by <code>local::lib</code> itself, but also based on options given to [https://metacpan.org/pod/ExtUtils::MakeMaker#INSTALL_BASE|<code>ExtUtils::MakeMaker</code>] and
[https://metacpan.org/pod/Module::Build#install_base|<code>Module::Build</code>].
<code>
use lib $ENV{HOME}.'/perl5/lib/perl5';
</code>
1222924
1222924