Getopt::Compact::PodMunger - script POD munging
my $p = new Getopt::Compact::PodMunger(); $p->parse_from_file('foo.pl'); $p->insert('USAGE', $usage_string); print $p->as_string;
Getopt::Compact::PodMunger is used internally by Getopt::Compact to parse POD in command line scripts. The parsed POD is then munged via the insert method. This is only required when the --man option is used.
insert
These methods are inherited from Pod::Parser. Refer to Pod::Parser for more information.
Modifies the parsed pod by inserting a new section as a head1 with $content under it. Correct ordering of sections (eg. NAME, SYNOPSIS, DESCRIPTION) is attempted. If $is_verbatim is true, the content will be indented by four spaces.
head1
NAME
SYNOPSIS
DESCRIPTION
Returns the parsed POD as a string.
Prints the parsed POD as a manpage, using Pod::Simple::Text::Termcap.
$Revision: 15 $
Andrew Stewart Williams
Getopt::Compact, Pod::Parser
To install Getopt::Compact, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Getopt::Compact
CPAN shell
perl -MCPAN -e shell install Getopt::Compact
For more information on module installation, please visit the detailed CPAN module installation guide.