I don't understand what use local::lib
does that regular use lib
doesn't. Could someone explain it?
local::lib
Defaults to ~/perl5
if you don't specify a directory (while use lib;
is a no-op).
Resolves relative paths to absolute paths before adding them to @INC
. (lib
just adds the relative path as-is.)
Expands ~
and ~user
in the directory name.
Appends /lib/perl5
to the directory you specify. (So use local::lib '/foo';
is somewhat equivalent to use lib '/foo/lib/perl5';
.)
Prepends DIR/bin
to your PATH, so you can use scripts installed by local modules.