How is Perl’s @INC constructed? (aka What are all the ways of affecting where Perl modules are searched for?)

What are all the ways of affecting where Perl modules are searched for?
or, How is Perl’s @INC constructed?

As we know, Perl uses @INC array containing directory names to determine where to search for Perl module files.

There does not seem to be a comprehensive “@INC” FAQ-type post on StackOverflow, so this question is intended as one.

3 Answers
3

Leave a Comment