Perldoc - Documentation Framework for Perl


Perldoc documentation Contained in the Perldoc distribution.

Index


Code Index:

NAME

Top

Perldoc - Documentation Framework for Perl

SYNOPSIS

Top

    > perl-doc --kwid-to-html Doc.kwid > Doc.html

DESCRIPTION

Top

Perldoc is meant to be a full featured documentation framework for Perl.

This release just contains enough functionality to convert Kwid to HTML.

AUTHOR

Top

Ingy döt Net <ingy@cpan.org> Audrey Tang <autrijus@cpan.org>

Audrey wrote the original code for this parser.

COPYRIGHT

Top


Perldoc documentation Contained in the Perldoc distribution.

package Perldoc;
use Perldoc::Base -base;
use 5.006001;
our $VERSION = '0.20';

sub kwid_to_html {
    my $class = shift;

    require Perldoc::Parser::Kwid;
    require Perldoc::Emitter::HTML;

    my $html = '';
    my $receiver = Perldoc::Emitter::HTML->new->init(
        stringref => \$html,
    );
    my $parser = Perldoc::Parser::Kwid->new(
        receiver => $receiver,
    )->init(@_);
    $parser->parse;
    return $html;
}