use lib
To search for a module that is not installed in any of the paths specified in @INC
,
use the lib
pragma.
use lib '/home/andy/private-lib/'; use Magic::Foo;
Note that the use lib
must come before trying to use Magic::Foo
.
Submit a PR to github.com/petdance/perl101
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.