Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

include files for perl pod

by Anonymous Monk
on Jul 22, 2013 at 19:57 UTC ( #1045710=perlquestion: print w/ replies, xml ) Need Help??
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?

Comment on include files for perl pod
Replies are listed 'Best First'.
Re: include files for perl pod
by rjt (Deacon) 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 (Abbot) 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1045710]
Approved by Perlbotics
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-10-07 16:32 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (191 votes), past polls