@INC
- @INC
The array
@INCcontains the list of places that thedo EXPR,require, oruseconstructs look for their library files. It initially consists of the arguments to any -I command-line switches, followed by the default Perl library, probably /usr/local/lib/perl, followed by ".", to represent the current directory. ("." will not be appended if taint checks are enabled, either by-Tor by-t.) If you need to modify this at runtime, you should use theuse libpragma to get the machine-dependent library properly loaded also:use lib '/mypath/libdir/'; use SomeMod;
You can also insert hooks into the file inclusion system by putting Perl code directly into
@INC. Those hooks may be subroutine references, array references or blessed objects. See require() for details.