I’m a perl noob and I have a very basic question regarding the @INC post: How is Perl's @INC constructed? (aka What are all the ways of affecting where Perl modules are searched for?)
Does the “otherlibdirs” Configure option completely rewrite the directories that are part of @INC, or merely add another directory? It’s not clear to me from that answer what it does, and I don’t want to screw up the whole @INC path.
Thanks!
Perusing source of the Perl Configure script, we find the following usage information:
So if you compile Perl with something like
Then the directories
/usr/foo/barand/usr/foo/bar/bazwill be appended to the normal@INCbuilt-in to theperlbinary.