jokerchu 发表于 2015-12-28 12:23:35

Perl 学习手札之十五:Documentation with POD

  Why use pod??
  POD is "plain old documentation".
  It's a simple language for uniform documentation.
  It's very easy to use.

  
  POD主要是用于模块
  Example.pm
  


__END__
=head1 NAME
Template - Description goes here
=head1 SYNOPSIS
    use Template
    my $o = Template->new;
=head1 METHODS
=over 4
=item B<new>
Constructs a new Template object.
Returns a blessed Template object reference.
=item B<method>
Describe the method here
=back
=head1 AUTHOR
Written by Your Name
=head1 HISTORY
    Version history here.
=cut  

  这个还是要结合pod的源代码和最终的pod来看。

  
  
  
页: [1]
查看完整版本: Perl 学习手札之十五:Documentation with POD