perl script to check if perl modules are installed

前端 未结 4 1414
无人共我
无人共我 2021-01-20 19:27

I\'d like to be able to run this test on each module in the list. Not sure how to ger perl looping over each item.

use Module::Load;
eval {
  load Image::Mag         


        
4条回答
  •  我在风中等你
    2021-01-20 20:25

    I want to echo @daxim's comment that it seems that you are looking to make a distribution of your module. For this I would look to either Module::Build or Dist::Zilla. Almost all of my modules use one of these two mechanisms, so if you need examples, feel free to thumb around my GitHub. Look for Build.PL or dist.ini files (for M::B or D::Z respectively).

提交回复
热议问题