2015-09-26 120 views

回答

5

请务必阅读@ smonff的回答,以及用于对问题2的响应和3

  1. 我应该在哪里寻找Perl 6个的图书馆?

modules.perl6.org

  1. 当我选择了一个,我该如何将它添加到我的perl 6项目中?

使用zef将其安装在您的本地系统上。

请阅读the modules doc page了解项目中模块的指示use

  1. 如果我找到它[某处],我该如何将它添加到我的perl 6项目中?

如果ZEF可以看到它(ZEF通常将能够看到一个模块如果回购在modules.perl6.org上市),那么ZEF应该可以安装。如果没有,请联系作者或在#perl6上提问。

+1

对于后来的读者:熊猫不赞成Zef。 – smonff

+0

@smonff谢谢。更新答案以符合当前情况。 – raiph

1

作为对2)和3)的回答,你可以看看6pm。对于Perl6,它的想法是NPM。它也可以与Perl5的Carton进行比较。 6pm作品通过Zef

$ 6pm init 

# Install dependencies to ./perl6-modules and add it to META6.json 
$ 6pm install Test::Meta --save 

# Run a file using the local dependencies 
$ 6pm exec-file test.p6 

# Make your code always use 6pm by making it "use SixPM;" 
$ perl6 test.p6 

有关更多信息,请参阅full documentation

相关问题