Pod::Weaver - weave together a Pod document from an outline


version 4.019


  my $weaver = Pod::Weaver->new_with_default_config;

  my $document = $weaver->weave_document({
    pod_document => $pod_elemental_document,
    ppi_document => $ppi_document,

    license  => $software_license,
    version  => $version_string,
    authors  => \@author_names,


Pod::Weaver is a system for building Pod documents from templates. It doesn't perform simple text substitution, but instead builds a Pod::Elemental::Document. Its plugins sketch out a series of sections that will be produced based on an existing Pod document or other provided information.


This module should work on any version of perl still receiving updates from the Perl 5 Porters. This means it should work on any version of perl released in the last two to three years. (That is, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.)

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.



This attribute stores the logger, which must provide a log method. The weaver's log method delegates to the logger's log method.


This attribute is an arrayref of objects that can perform the Pod::Weaver::Role::Plugin role. In general, its contents are found through the "plugins_with" method.



  my $plugins_array_ref = $weaver->plugins_with('-Section');

This method will return an arrayref of plugins that perform the given role, in the order of their registration. If the role name begins with a hyphen, the method will prepend Pod::Weaver::Role::.


  my $document = $weaver->weave_document(\%input);

This is the most important method in Pod::Weaver. Given a set of input parameters, it will weave a new document. Different section plugins will expect different input parameters to be present, but some common ones include:

  pod_document - a Pod::Elemental::Document for the original Pod document
  ppi_document - a PPI document for the source of the module being documented
  license      - a Software::License object for the source module's license
  version      - a version (string) to use in produced documentation

The pod_document should have gone through a Pod5 transformer, and should probably have had its =head1 elements nested.

The method will return a new Pod::Elemental::Document. The input documents may be destructively altered during the weaving process. If they should be untouched, pass in copies.


This method returns a new Pod::Weaver with a stock configuration by using only Pod::Weaver::PluginBundle::Default.


Ricardo SIGNES <>


  • Alex Peters <>

  • Apocalypse <>

  • Blabos de Blebe <>

  • Caleb Cushing <>

  • Christian Walde <>

  • Christopher J. Madsen <>

  • Chris Weyl <>

  • Dave Houston <>

  • Dave Rolsky <>

  • David E. Wheeler <>

  • David Golden <>

  • David Miguel Susano Pinto <>

  • David Zurborg <>

  • Doug Bell <>

  • Florian Ragwitz <>

  • Jonathan "Duke" Leto <>

  • Joshua Keroes <>

  • Karen Etheridge <>

  • Kent Fredric <>

  • Kivanc Yazan <>

  • Marcel Gruenauer <>

  • Randy Stauner <>

  • Ricardo Signes <>

  • Sam Graham <>

  • Shlomi Fish <>


This software is copyright (c) 2023 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.