|
|
| Welcome to the Monastery | |
| PerlMonks |
[literate programming] How to mix POD with code? And how to fold this?by LanX (Saint) |
| on May 04, 2010 at 11:57 UTC ( #838289=perlquestion: print w/replies, xml ) | Need Help?? |
|
LanX has asked for the wisdom of the Perl Monks concerning the following question:
Hi I had a discussion with Ilya Zakharevich about how cperl-mode in emacs should fold perl-code in respect to embedded POD. I'm a big fan of literal programming, DRY and encapsulation but holding the documentation in close vicinity to the code doesn't seem to be that easy in perl... Do I get right that the only "straighforward" way to achieve this with CPAN-like POD-structure is by splitting POD into two surrounding parts and preceding every sub by parts?
NAME
VERSION
SYNOPSIS
DESCRIPTION
METHODS
intro about methods ...
load ($source, -opt1 => $val1, ...)
text describing load()
parse ($string, -opt1 => $val1, ...)
text describing parse()
SEE ALSO
AUTHOR
BUGS
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Cheers Rolf
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||