Perl 101: Things Every Perl Programmer Should Know.

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.


Want to contribute?

Submit a PR to github.com/petdance/perl101


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.