|
Pod::Index::Builder - Build a pod index |
Pod::Index::Builder - Build a pod index
use Pod::Index::Builder;
my $p = Pod::Index::Builder->new;
for my $file (@ARGV) {
$p->parse_from_file($file);
}
$p->print_index;
This is a subclass of the Pod::Parser manpage that reads POD and outputs nothing. However, it saves the position of every X<> entry it sees. The index can be retrieved as a hashref, or printed in a format that is understandable by the Pod::Index::Search manpage.
$parser->print_index($fh);
$parser->print_index($filename);
$parser->print_index();
Prints the index to the given output filename or filehandle (or STDOUT by default). The format is tab-delimited, with the following columns:
1) keyword
2) podname
3) line number
4) context (title of section containing this entry)
The index is sorted by keyword in a case-insensitive way.
0.12
the Pod::Index manpage, the Pod::Index::Entry manpage, the Pod::Index::Search manpage, the Pod::Parser manpage, the perlpod manpage
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.
|
Pod::Index::Builder - Build a pod index |