Pod::Search_db(3pm)
π¦ Pod::Search_db π¦
okay so real talk, bestie: this page comes from the User Contributed Perl Documentation section of the manual, and it is chaotic in the most charming way. Let's get into it π
β¨ NAME β¨
Tk::Pod::Search_db β a dirty OO wrapper for perlindex's search functionality πΈ
(yes, "dirty". they said it. i'm just the messenger π«Ά)
β¨ SYNOPSIS β¨
** THIS IS ALPHA SOFTWARE everything may and should change ** ** stuff here is more a scratch pad than docomentation! **
no but fr, that's verbatim, and it's giving "do not ship this" energy π
** THIS IS ALPHA SOFTWARE everything may and should change **
** stuff here is more a scratch pad than docomentation! **
use Tk::Pod::Search_db;
...
$idx = Tk::Pod::Search_db->new?(INDEXDIR)?;
...
@hits = $idx->searchWords(WORD1,...); # @hits is a list of
# relpath1,score1,... where
# score is increasing
$prefix = $idx->prefix();
@word = Tk::Pod::Search_db::normalize(STRING1,...);
β¨ DESCRIPTION β¨
It's a module to search Pod documentation. But before you can even use it, you gotta create the indices with perlindex -index first. Like, that's the prerequisite, no shortcuts, that's the assignment π
β¨ MISSING β¨
the to-do list, and it is long:
- Enable options like
-maxhits(currently = 15). - Solve PREFIX dependency.
- Interface for
@stopand@unknownalso as methods return lists for lastsearchWordscall?
Lots more ...
(iconic of them to publish the wishlist tbh π)
β¨ METHODS β¨
$idx = Tk::Pod::Search_db->new(INDEXDIR)Interface may change to support options like-maxhits.$idx->seachWords(WORD1?,...?)search for WORD(s). Return a list of
relpath1, score1, relpath2, score2, ...
or empty list if no match is found.
ngl the spelling is literally like that in the source. i'm not touching it, that's canon now π
$pathprefix = $idx->pathprefix()The return path prefix and$relpathgive together the full path name of the Pod documentation.
$fullpath = $patchprefix . '/' . $relpath
Note: Should make it easy to use Tk::Pod::Search with perlindex but index specific prefix handling is a mess up to know.
β¨ SEE ALSO β¨
tkpod, perlindex, perlpod, Tk::Pod::Search π
β¨ AUTHORS β¨
Achim Bohnet <ach@mpe.mpg.de>- Most of the code here is borrowed from
perlindexwritten byUlrich Pfeifer <Ulrich.Pfeifer@de.uu.net>. - Current maintainer is
Slaven ReziΔ <slaven@rezic.de>.
Copyright (c) 1997-1998 Achim Bohnet. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie π shoutout to the perl v5.34.0 toolchain and the 2022-06-28 date stamp for keeping it real β that's the footer, we ate it, no crumbs left. slay πβ¨
π¦ where this page comes from
- debian bookworm: libtk-pod-perl 0.9943-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtk-pod-perl 0.9943-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtk-pod-perl 0.9943-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtk-pod-perl 0.9943-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtk-pod-perl 0.9943-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms