Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a set of perl scripts. Some of the documentation for the scripts is common. Is it possible to keep that in a file and include the file in the POD sections?

Replies are listed 'Best First'.
Re: include files for perl pod
by rjt (Curate) on Jul 22, 2013 at 20:00 UTC

    Have a look at Pod::Template. It does pretty much exactly what you are looking for.

Re: include files for perl pod
by tobyink (Canon) on Jul 22, 2013 at 20:04 UTC

    Pod::Weaver does that and more.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name