How do I find the module dependencies of my Perl script?

前端 未结 5 555
终归单人心
终归单人心 2020-12-23 10:13

I want another developer to run a Perl script I have written. The script uses many CPAN modules that have to be installed before the script can be run. Is it possible to mak

5条回答
  •  爱一瞬间的悲伤
    2020-12-23 10:48

    Another tool in this area, which is used by Dist::Zilla and its AutoPrereqs plugin, is Perl::PrereqScanner. It installs a scan-perl-prereqs program that will use PPI and a few plugins to search for most kinds of prereq declaration, using the minimum versions you define. In general, I suggest this over scanning %INC, which can bring in bogus requirements and ignores versions.

提交回复
热议问题