gpt4 book ai didi

perl - 使用 pod2html 生成带有自定义文本的 http 链接的正确语法是什么?

转载 作者:行者123 更新时间:2023-12-02 01:19:19 26 4
gpt4 key购买 nike

perlpod文档告诉我,我可以使用链接到 URL L<scheme:...>L<text|scheme:...> ,它甚至列出了 L<The Perl
Home Page|http://www.perl.org/>
举个例子。

第一个案例对我来说效果很好: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 中的一个错误正如艾伦·哈盖·阿拉维指出的那样。有解决办法吗?

最佳答案

这确实是 Pod::Html 中的一个错误。 。它已在 bleadperl 中修复。

现在L<example|http://example.com/>转换为 <a href="http://example.com/">example</a> .

Pod::Html 是一个纯 Perl 模块,the files can be copied from bleadperl这将为您提供 1.12 版本。 perlv5.14.2 附带的模块是版本 1.11,并出现此错误。

否则,您可以使用 Pod::Simple::Html 其按预期工作。

关于perl - 使用 pod2html 生成带有自定义文本的 http 链接的正确语法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8465807/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com