Topics
Modules

Modules

Search for modules in non-standard places with 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.