perlpod文档告诉我,我可以使用链接到URL
L<方案:…>或者L< text | scheme:...>,它甚至列出了L< The Perl
主页| http://www.perl.org/\u0026gt;举个例子.
L<方案:…>或者L< text | scheme:...>,它甚至列出了L< The Perl
主页| http://www.perl.org/\u0026gt;举个例子.
第一种情况对我来说很好:pod2html转
L<http://example.com/>
成
<a href="http://example.com/">http://example.com/</a>
但它失败了
L<example|http://example.com/>
刚刚变成了
<em>example</em>
以及警告:
/usr/bin/pod2html: : cannot resolve L<example|http://example.com/> in paragraph 2.
我会期待类似的东西
<a href="http://example.com/">example</a>
要生产.我怎样才能做到这一点?
解决方法
它确实是
Pod::Html
中的一个错误.它已在bleadperl中修复.
现在L< example | http://example.com/\u0026gt;转换为< a href =“http://example.com/”>示例< / a>.
由于Pod::Html
是纯粹的Perl模块,the files can be copied from bleadperl将为您提供版本1.12. perlv5.14.2附带的模块是版本1.11并且出现此错误.
否则,您可以使用Pod::Simple::Html
,它按预期工作.