如何在我的perlscript中包含doxygen perlmod?
如何在我的perlscript中包含doxygen perlmod 我注意到,你可以用doxygen生成一个替代输出,叫做perlmod, 但是我找不到任何关于如何使用这部分的例子 我在那里找到了两个很好的文件DoxyDocs.pm和doxydistructure.pm, 它们包含某种表示源代码的良好结构 (它看起来像一个数组/哈希代码) 但是由于我的“高级perl”有点生疏,我在开始使用这个小想法时遇到了问题 有人能把我推到正确的方向吗 谢谢 约翰如何在我的perlscript中包含doxygen perlmod?,perl,doxygen,Perl,Doxygen,如何在我的perlscript中包含doxygen perlmod 我注意到,你可以用doxygen生成一个替代输出,叫做perlmod, 但是我找不到任何关于如何使用这部分的例子 我在那里找到了两个很好的文件DoxyDocs.pm和doxydistructure.pm, 它们包含某种表示源代码的良好结构 (它看起来像一个数组/哈希代码) 但是由于我的“高级perl”有点生疏,我在开始使用这个小想法时遇到了问题 有人能把我推到正确的方向吗 谢谢 约翰 我应该使用-I到perl并“使用”那些.p
我应该使用-I到perl并“使用”那些.pm吗
#!/usr/bin/perl -Icode/doc/perlmod/
use strict;
use warnings;
use DoxyStructure;
use DoxyDocs;
或者我应该以另一种方式包含这些文件?也许是这样的?但问题是,我不能启用严格和警告,因为我得到的错误回来
#!/usr/bin/perl
#use strict;
#use warnings;
require "code/doc/perlmod/DoxyDocs.pm";
更新 为了在Doxygen中启用perlmod,我在Doxygen文件中使用以下标志将其打开:
# If the GENERATE_PERLMOD tag is set to YES Doxygen will
# generate a Perl module file that captures the structure of
# the code including all documentation. Note that this
# feature is still experimental and incomplete at the
# moment.
GENERATE_PERLMOD = YES
# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
# the necessary Makefile rules, Perl scripts and LaTeX code to be able
# to generate PDF and DVI output from the Perl module output.
PERLMOD_LATEX = YES
然后,doxygen在与html和latex目录相同的目录中创建一个名为perlmod的新目录,并在perlmod中找到我尝试使用的列表
- perlmod/DoxyDocs.pm
- perlmod/doxyformat.tex
- perlmod/doxylatex.pl
- perlmod/doxylatex-structure.pl
- perlmod/doxylatex.tex
- perlmod/doxyrules.make
- perlmod/DoxyStructure.pm
- perlmod/Makefile 你的意思是?这更像是Perl标准,而不是Doxygen标准。它可以生成纯文本、HTML或nroff格式的输出(使用
pod2text
、pod2html
和pod2man
工具)。你为什么不用它来代替呢?你的意思是?这更像是Perl标准,而不是Doxygen标准。它可以生成纯文本、HTML或nroff格式的输出(使用pod2text
、pod2html
和pod2man
工具)。你为什么不用它来代替呢