package Pod::Weaver::Section::SeeAlsoCodeTidyAll; BEGIN { $Pod::Weaver::Section::SeeAlsoCodeTidyAll::VERSION = '0.14'; } use Moose; with 'Pod::Weaver::Role::Section'; use Moose::Autobox; # Add "SEE ALSO: CodeTidyAll" sub weave_section { my ( $self, $document, $input ) = @_; my $idc = $input->{pod_document}->children; for ( my $i = 0 ; $i < $idc->length ; $i++ ) { next unless my $para = $idc->[$i]; return if $para->can('command') && $para->command eq 'head1' && $para->content eq 'SEE ALSO'; } $document->children->push( Pod::Elemental::Element::Nested->new( { command => 'head1', content => 'SEE ALSO', children => [ Pod::Elemental::Element::Pod5::Ordinary->new( { content => "L" } ), ], } ), ); } __PACKAGE__->meta->make_immutable; no Moose; 1;