> but using POD for this is better than what you have
The debugger perl5db.pl is a good counterexample to this thesis.
It has a big command loop where the users input is read and the documentation for each command is interspersed for each command section.
The documentation will show up in the same order like programmed and must stay at this chronological position.
This makes refactoring the code extremely difficult. Frankly it's a PITA.
I'm a fan of interspersed function docs with POD, but
- only use it for external documentation.
- don't make code position dependend on it
- remember subs can be moved, linear code normally can't
|