PERLDIG(1p)
π PERLDIG π
ok so bestie, this is perldig β it digs up keywords in your local Perl documentation π¦β¨ no cap, it's literally a search engine but for your own machine's perl docs. main character energy fr.
β¨ NAME β¨
perldig β Dig up keywords in the local Perl documentation π
πΈ SYNOPSIS πΈ
# Update the index (required before first start)
perldig -u
# Search for a keyword
perldig keyword(s)
π DESCRIPTION π
ok so first time you ever use perldig, you gotta make an index. it's giving "no index, no vibes". literally just run:
$ perldig -u
and everything happens automatically, bestie, you don't have to lift a finger π«Ά A crawler will detect locally installed Perl documentation pages, rummage through the POD and index them. once that initial run is done done, perldig is ready to process search requests:
$ perldig frobnicate
1) pod/perlguts.pod 2) pod/perlxstut.pod 3) pod/perlnewmod.pod
Enter number of choice:
that's a search for the keyword frobnicate, and yes bestie that word is literally in the Perl documentation, iconic π It shows three hits and asks you to enter a number between 1 and 3 to open the selected documentation page in a pager program (typically less). once you're in there, you can start an in-text search for the expression by using the / (slash) command. chef's kiss π
If you give two or more keywords, the search will yield pages that contain all of them. and when you're searching for phrases, pls pls pls include quotes (and make sure to quote the quotes so the shell doesn't eat them π):
$ perldig '"floating point"'
the underlying swish-e search engine also understands expressions connected via AND and OR:
$ perldig "'floating point' AND approximate AND 'real number'"
To keep the index up to date, it is probably a good idea to run a cronjob every morning β:
00 4 * * * /usr/bin/perldig -u >/dev/null 2>&1
If you can read German, please check out this article in the Linux-Magazin, where this script was originally published:
http://www.linux-magazin.de/Artikel/ausgabe/2003/10/perl/perl.html
π EXAMPLES π
# Update/create the index
$ perldig -u
$ perldig frobnicate
1) pod/perlguts.pod 2) pod/perlxstut.pod 3) pod/perlnewmod.pod
Enter number of choice: 1
[ ... perlguts man page shows ... ]
π¦ FILES π¦
perldig puts the swish-e index files into the folder .perldig in the user's home directory π
π LEGALESE π
Copyright 2003-2005 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
π AUTHOR π
2003, Mike Schilli <m@perlmeister.com>
and that's the whole vibe check bestie β this page ships with perl v5.32.0, dated 2021-01-05, and it's PERLDIG(1p) from the User Contributed Perl Documentation. slay π
β¨
π¦ where this page comes from
- debian bookworm: libperldoc-search-perl 0.01-3.1
- debian trixie: libperldoc-search-perl 0.01-3.1
- ubuntu jammy: libperldoc-search-perl 0.01-3.1
- ubuntu noble: libperldoc-search-perl 0.01-3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms