- %INC
-
The hash
%INCcontains entries for each filename included via thedo,require, oruseoperators. The key is the filename you specified (with module names converted to pathnames), and the value is the location of the file found. Therequireoperator uses this hash to determine whether a particular file has already been included.ハッシュ
%INCは、do,require,use演算子によって インクルードされた、個々のファイル名をエントリとして持っています。 key は指定したファイル名(モジュール名はパス名に変換されます)で、 value は見つかった場所となっています。require演算子は、指定されたファイル名が既に インクルードされているかを、このハッシュを使って調べます。If the file was loaded via a hook (e.g. a subroutine reference, see "require" in perlfunc for a description of these hooks), this hook is by default inserted into
%INCin place of a filename. Note, however, that the hook may have set the%INCentry by itself to provide some more specific info.ファイルがフック(つまりサブルーチンリファレンス; フックに関する 説明については "require" in perlfunc を参照してください)経由で読み込まれた 場合、このフックはデフォルトではファイル名の代わりに
%INCに挿入されます。 しかし、フックはさらなる特定の情報を提供するために、自身で%INCエントリを セットするかもしれないことに注意してください。