Movatterモバイル変換


[0]ホーム

URL:


variables /@INC
(source,CPAN)
#@INC

The array@INC contains the list of places that thedo EXPR,require, oruse constructs 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. Prior to Perl 5.26,. -which represents the current directory, was included in@INC; it has been removed. This change in behavior is documented inPERL_USE_UNSAFE_INC and it is not recommended that. be re-added to@INC. If you need to modify@INC at runtime, you should use theuse lib pragma to get the machine-dependent library properly loaded as well:

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" in perlfunc for details.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp