/ Published in: Perl
URL: http://my.safaribooksonline.com/0596000278/pperl3-CHP-26-SECT-5?portal=oreilly
Start all your Perl scripts this way. Then instead of writing documentation, generate documentation automatically; from comments embedded in the code.
Steve Oualline has another nice Perl POD example
How to generate Perl PODUse pod2html myFile.pl to generate HTML documentation (like JavaDoc, RDoc or YUIDoc).
There's also pod2latex which does just what you would think ;-)
Or just use pod2text to generate plain text documentation.
Expand |
Embed | Plain Text
#!/usr/bin/perl -w use strict; =head1 NAME =head1 SYNOPSIS =head1 DESCRIPTION =head2 Features =over =item =item =item =back =cut
You need to login to post a comment.
