I was curious as to what percentage of Perl'ers use POD for documenting their code. I was curious because I looked at the Template-Toolkit source and while there is POD after the __END__ there is also documentation in the code using normal # type comments. That seems redundant to me but is that the norm?
Also, is there a good "this is how you use POD" with examples (besides perlpod) somewhere?
Two different purposes (Score:1)
pod is for API documentation, usage examples, links (see also, websites, etc).
regular "#" comments are there to let the programmer know what is going on in a particular part of the code (see this perlbuzz post for examples: http://perlbuzz.com/mechanix/2007/12/how-to-document-your-code.html [perlbuzz.com])
HTH.
Re: (Score:1)
What he said.
In short, POD is for the guy who uses the code, whereas comments are for the guy who maintains it.
Re: (Score:1)
I get it now
What vs Why (Score:1)
Comments describe for other maintainers WHY the code does it.
POD Alternative (sortof) (Score:1)