How is Perl's @INC constructed? (aka What are all the ways of affecting where Perl modules are searched for?)

前端 未结 3 1284
说谎
说谎 2020-11-22 13:06

What are all the ways of affecting where Perl modules are searched for? or, How is Perl\'s @INC constructed?

As we know, Perl uses @INC array conta

3条回答
  •  悲哀的现实
    2020-11-22 13:33

    In addition to the locations listed above, the OS X version of Perl also has two more ways:

    1. The /Library/Perl/x.xx/AppendToPath file. Paths listed in this file are appended to @INC at runtime.

    2. The /Library/Perl/x.xx/PrependToPath file. Paths listed in this file are prepended to @INC at runtime.

提交回复
热议问题