Topics

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.


We want your feedback

If we can improve perl101.org in any way, please let us know with this form.

Your name
Your email
Your comment