| Perldoc documentation | Contained in the Perldoc distribution. |
Perldoc - Documentation Framework for Perl
> perl-doc --kwid-to-html Doc.kwid > Doc.html
Perldoc is meant to be a full featured documentation framework for Perl.
This release just contains enough functionality to convert Kwid to HTML.
Ingy döt Net <ingy@cpan.org> Audrey Tang <autrijus@cpan.org>
Audrey wrote the original code for this parser.
Copyright (c) 2006. Ingy döt Net. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| 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; }