Perl: how to share the import of a large list of modules between many independent scripts?

后端 未结 5 882
梦如初夏
梦如初夏 2021-01-12 10:40

I have many standalone scripts. The only thing they share, is that they use() a large set of CPAN modules (that each export several functions). I would like to centralize th

5条回答
  •  借酒劲吻你
    2021-01-12 11:09

    Using require is the most natural way to do this. Under mod_perl you may need to modify @INC during server startup.

提交回复
热议问题