@INC在perl中代表什么?

tem*_*ame -5 perl

我很惊讶我无法找到这么简单问题的答案.答案是否如此明显,以前没有人曾经问过?我只能猜测它可能代表"包括"但我真的不知道.如果你有参考,那么参考会很好.

编辑:我知道@INCPerl的功能和作用是什么.我问为什么叫做INC.

Jen*_*ens 7

使用优秀的perldoc实用程序怎么样?

$ perldoc -q INC
[...]
   How do I add a directory to my include path (@INC) at runtime?
   Here are the suggested ways of modifying your include path, including environment
   variables, run-time switches, and in-code statements:
[...]
Run Code Online (Sandbox Code Playgroud)

  • `perldoc perlvar`有更多信息. (2认同)