I favor the kind of literary style of programming with POD comments next to the code they document. Unfortunately, this inflates code, which is not very Perlish ;-) The best way I could find is to use Dist :: Zilla with Pod :: Weaver :
package Foo; #ABSTRACT: Foobar helper module for Foos =method foo ( $bar, $doz ) Lorem ipsum hopladi and hoplada. =cut sub foo { ... }
Arguably delete blank lines, but it also reduces readability. Isn't there a way to write more concise without any repetitive and unnecessary syntax:
package Foo; #ABSTRACT: Foobar helper module for Foos #METHOD: Lorem ipsum hopladi and hoplada. sub foo { # $bar, $doz ... }
And increase this to a full POD:
=head1 NAME Foo - Foobar helper module for Foos =head1 METHODS =head2 foo ( $bar, $doz ) Lorem ipsum hopladi and hoplada.
I think this should be possible with the Pod :: Weaver plugin, but trying to understand the architecture of Pod :: Weaver in combination with Dist :: Zilla and PPI made my brain hurt: - (
Jakob source share