NAME

AnnoCPAN::PodParser - Parse a pod and load the paragraphs into the database

SYNOPSIS

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);
}

DESCRIPTION

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.

SEE ALSO

AnnoCPAN::DBI, AnnoCPAN::Update, AnnoCPAN::Dist, Pod::Parser

AUTHOR

Ivan Tubert-Brohman <itub@cpan.org>

COPYRIGHT

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.