| AnnoCPAN documentation | view source | Contained in the AnnoCPAN distribution. |
AnnoCPAN::PodParser - Parse a pod and load the paragraphs into the database
sub filter_pod {
my ($self, $code, $podver) = @_;
my $fh_in = IO::String->new($code);
my $parser = AnnoCPAN::PodParser->new(
ac_podver => $podver,
ac_pos => 0,
ac_verbose => $self->verbose,
);
$parser->parse_from_filehandle($fh_in);
}
This module is used by AnnoCPAN::Dist when loading a new distribution
into the database. It is a subclass of Pod::Parser that overrides
the verbatim, command, and textblock methods and uses them to insert
the almost unparsed POD into the database tables.
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.
| AnnoCPAN documentation | view source | Contained in the AnnoCPAN distribution. |