AnnoCPAN::PodToHtml - Convert POD to HTML
# this is low-level use of Pod::Parser, in AnnoCPAN::DBI my $parser = AnnoCPAN::PodToHtml->new; my %methods = ( VERBATIM, 'verbatim', TEXTBLOCK, 'textblock', COMMAND, 'command', ); sub html { my ($self) = @_; my $method = $methods{$self->type}; my @args = $self->content; if ($method eq 'command') { # split into command and content @args = $args[0] =~ /==?(\S+)\s+(.*)/s; } my $html = $parser->$method(@args); }
This is a subclass of Pod::Parser for converting POD into HTML. It overrides the verbatim, textblock, command, and interior_sequence methods.
verbatim
textblock
command
interior_sequence
AnnoCPAN::DBI
Ivan Tubert-Brohman <itub@cpan.org>
Copyright (c) 2005 Ivan Tubert-Brohman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install AnnoCPAN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnnoCPAN
CPAN shell
perl -MCPAN -e shell install AnnoCPAN
For more information on module installation, please visit the detailed CPAN module installation guide.