
App::Perldoc::Search::_Parser - Pod parser for extracting NAME and searching for matchs

my $parser = App::Perldoc::Search::_Parser->new;
$parser->{pattern} = qr/thing_to_search_for/;
$parser->parse_from_filehandle( $fh );
if ( $parser->{matched} ) {
print "$parser->{name}\n";
}

Parses pod to extract the NAME and also search for a pattern match.

Set this to a regular expression prior to parsing. This is the pattern being searched for.
A boolean returned which tells whether the pattern matched.
The extracted name and description

Checks for =head NAME commands and searches for the pattern.
Searches for the pattern.
Searches for the pattern. Extracts the name if a =head command was just encountered