开发者

How can I make Module::Build install both X and X::Y?

开发者 https://www.devze.com 2022-12-11 08:50 出处:网络
If I have a distribution with X and X::Y also in it, how do I make Module::Build install both the modules? I have put X.pm in lib, written a file Build.PL with the line

If I have a distribution with X and X::Y also in it, how do I make Module::Build install both the modules? I have put X.pm in lib, written a file Build.PL with the line

my $bui开发者_运维百科ld = Module::Build->new
    (
     module_name => "X",
 );

This installs X OK, but how do I tell Module::Build to also include X::Y in the distribution?


Module::Build should automatically find and install both modules, though you should indicate to it (in Build.PL) which one the distribution name/version is taken from.

Try creating your distribution with module-starter and let it worry about the details?

module-starter -mb --module=X --module=X::Y --author=Me --email=me@example.com
0

精彩评论

暂无评论...
验证码 换一张
取 消