in reply to Parse POD of a method from perl module
The real complication is parsing the corresponding Perl sub names.
like
- are all sub's source supposed to follow directly to the POD?
- are subs described in head2-items following a special head1-item? (like INTERFACE)
Could you please give us more informations about what you are trying to achieve?
Unfortunately solutions in Perl are not very DRY (thats why I envy Python for stealing docstrings from Lisp)
For instance one of my last employers used a POD server which automatically parsed all installed modules to create CPAN like web-pages including TOCs listing each function/method.
Following the links you got the POD for each sub and the code was JS-folded in between.
Thats what you want? For instance this solution would imply switching from head1 to head2 in your POD.
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse POD of a method from perl module
by perlUser9 (Novice) on May 13, 2014 at 22:36 UTC | |
by LanX (Saint) on May 13, 2014 at 22:45 UTC | |
by perlUser9 (Novice) on May 13, 2014 at 23:15 UTC |