可能重复:
Does Perl have something like Java/PHP Docs?
What's the best way to document Perl code?Perl子文档
有没有写一个子程序文档的方法吗?
如
sub add {
#docs: this subroutine adds two numbers
}
后来提取信息?
可能重复:
Does Perl have something like Java/PHP Docs?
What's the best way to document Perl code?Perl子文档
有没有写一个子程序文档的方法吗?
如
sub add {
#docs: this subroutine adds two numbers
}
后来提取信息?
有一个类似javadoc的设置叫做pod。您可以通过以下方式了解更多信息:perldoc perlpod
或这里:http://perldoc.perl.org/perlpod.html
用于编写Perl文档的标准方法是POD。 perldoc
命令将提取POD并很好地显示它。您还可以使用各种工具,如pod2html
将其转换为HTML。
值得注意的是,perldoc早于Java。 – btilly 2011-04-29 19:40:46