App::Perldoc::Search::_Parser - Pod parser for extracting NAME and searching for matchs
version 0.11
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
To install App::Perldoc::Search, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Perldoc::Search
CPAN shell
perl -MCPAN -e shell install App::Perldoc::Search
For more information on module installation, please visit the detailed CPAN module installation guide.