In perl, @INC is a perl-defined array with the list of directories that perl will search when it needs to find scripts or modules that are called with "do", "require" or "use".
A common faq with perl beginners is, "How can I make perl search such-and-such directory?" and one answer is to manipulate @INC:
push( "/some/directory", @INC );
One may also use the "lib" pseudo module, as such:
use lib "/path/to/my/perl/lib";
The end result is the same, but the code is a bit cleaner.
Log in or register
to write something here or to contact authors.