POD aka Plain Old Documentation, aka Perl Online Documentation is a way of documenting Perl code so that users of your code do not have to read the code itself. Using the # style of comments is OK if you are the only one reading using your code. However, even if you are not ready to distribute you module on CPAN you may have someone else using your code. POD documentation style allows you to replace the # comments with documentation that can be extracted to a separate text or HTML file. Here is an example of how it works using the program above.
The =head1 and =item tags start a
comment and tell the Perl interpreter to ignore the text. The =cut
tag tells the Perl interpreter to start interpreting instructions
again. The comments / documentation can then be extracted with
the command
The result is in file GeneInfo.txt.
See perldoc and perlpod for more details.
There are no user comments.
Please send ideas and opinions by email at alexamies@gmail.com.