NAME
pod2text - function to convert POD data to formatted ASCII text
Pod::Text - a class for converting POD data to formatted ASCII text
SYNOPSIS
use Pod::Text;
pod2text("perlfunc.pod");
or
use Pod::Text;
package MyParser;
@ISA = qw(Pod::Text);
sub new {
## constructor code ...
}
## implementation of appropriate subclass methods ...
package main;
$parser = new MyParser;
@ARGV = ('-') unless (@ARGV > 0);
for (@ARGV) {
$parser->parse_from_file($_);
}
DESCRIPTION
Pod::Text is a module that can convert documentation in the POD format (such as can be found throughout the Perl distribution) into formatted ASCII. Termcap is optionally supported for boldface/underline, and can be enabled via $Pod::Text::termcap=1
. If termcap has not been enabled, then backspaces will be used to simulate bold and underlined text.
A separate pod2text program is included that is primarily a wrapper for Pod::Text::pod2text()
.
The single function pod2text()
can take one or two arguments. The first should be the name of a file to read the pod from, or "<&STDIN" to read from STDIN. A second argument, if provided, should be a filehandle glob where output should be sent.
SEE ALSO
AUTHOR
Tom Christiansen <tchrist@mox.perl.com>
Modified to derive from Pod::Parser by Brad Appleton <Brad_Appleton-GBDA001@email.mot.com>