从另一个Perl 6文件访问POD [英] Access POD from another Perl 6 file
本文介绍了从另一个Perl 6文件访问POD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Perl 6 POD文档包含有关访问当前文件的POD文档的部分通过使用$=pod
.没有有关访问另一个文件的POD文档的信息.
The Perl 6 POD documentation has a section on accessing the current file's POD document by using $=pod
. There is no information on accessing another file's POD document.
如何在不更改当前文件$=pod
的情况下访问另一个文件的POD结构?
How can I access another file's POD structure, without altering the current file's $=pod
?
推荐答案
您现在可以使用 Pod :: Load .来自示例目录中的README
You can now do that with Pod::Load. From the README
in the examples directory
perl6 -e 'use Pod::Load; .perl.say for load("pod-load-clean.pod6")'
请注意,Pod6文件必须干净",即,不要使用通常不可用的任何外部模块,否则可能会失败.
Please note that the Pod6 file has to be "clean", that is, not use any external module that is not generally available or it might fail.
这篇关于从另一个Perl 6文件访问POD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文