Perl 在pod中包含常量

Perl 在pod中包含常量,perl,perl-module,Perl,Perl Module,是否可以在模块的POD中包含常量的内容。例如: use constant DEFAULT_URL => "http://www.example.com"; ... =item B<setUrl> Change the URL to query. Default is [contents of DEFAULT_URL here] =cut 使用常量默认值\u URL=>”http://www.example.com"; ... =项目B 将URL更改为查询。默认值为[此处默

是否可以在模块的POD中包含常量的内容。例如:

use constant DEFAULT_URL => "http://www.example.com";
...
=item B<setUrl>

Change the URL to query. Default is [contents of DEFAULT_URL here]

=cut
使用常量默认值\u URL=>”http://www.example.com";
...
=项目B
将URL更改为查询。默认值为[此处默认URL的内容]
=切割

根据,不,如果不做一些工作,这是不可能的。您可以编写另一个脚本来生成POD文档,其中可能包含变量。

非常好的链接,谢谢!我想我会重新表述文档,而不是尝试生成/替换。。。