Pod::FindPods(3pm)
β¨ NAME β¨
Tk::Pod::FindPods β bestie, this one finds the Pods installed on your current system π
(also known as Pod::FindPods, that's the manual page name, iykyk)
πΈ SYNOPSIS πΈ
use Tk::Pod::FindPods;
my $o = Tk::Pod::FindPods->new;
$pods = $o->pod_find(-categorized => 1, -usecache => 1);
π¦ DESCRIPTION π¦
π pod_find
okay so the pod_find method literally scans your whole current system for available Pod documentation. no cap. π«Ά
The keys of the returned hash reference are the names of the modules or Pods, and here's the cute part: "::" gets substituted by "/" β because that makes life easier for Tk::Pod::Tree, since the separator can only be one character long. The values are the corresponding filenames. slay. π
If -categorized is specified, then the returned hash gets an extra level with four categories, and they are:
perlβ for core language documentationpragmaβ for pragma documentation likevarorstrictmodβ core or CPAN modulesscriptβ perl scripts with embedded Pod documentation
Otherwise, -category may be set to force the Pods into a category.
By default, @INC is scanned for Pods. You can override that with the -directories option (specify it as an array reference, bestie π).
If -usecache is specified, then the list of Pods gets cached (see cache directory down below π). But heads up: -usecache is disabled if -categorized is not set, or if -directories is set. that's just how it is π
πΎ WriteCache
Write the Pod cache. The cache is written to the cache directory. The file name is constructed from the perl version, the operation system and the user id. iconic little combo honestly.
π₯ LoadCache()
Load the Pod cache, if possible. lowkey simple.
π Cache directory
By default the cache file is written to the directory ~/.tkpod_cache on Unix systems, or to the data directory as determined by File::HomeDir on Windows and MacOSX. And if everything fails? then the temporary directory (/tmp or the OS equivalent) is used. the backup plan of backup plans π
If necessary, then the last path component will be created β that is, .tkpod_cache will be created if the directory does not exist. so convenient fr fr β¨
To use another cache directory, set the environment variable TKPODCACHE.
π ENVIRONMENT π
TKPODCACHEβ use a custom cache file instead of a file in the cache directory. The following placeholders are recognized:%vβ the perl version.%oβ the OS (technically correct: the archname, which can include tokens like"64int"or"thread").%uβ the user id.
Example for using /some/other/directory for the cache file location:
TKPODCACHE=/some/other/directory/pods_%v_%o_%u; export TKPODCACHE
or
setenv TKPODCACHE /some/other/directory/pods_%v_%o_%u
depending on your shell (sh-like or csh-like). pick your fighter π
π SEE ALSO π
Tk::Tree.
π AUTHOR π
Slaven ReziΔ <slaven@rezic.de>
Copyright (c) 2001,2003,2004,2005,2007,2009 Slaven ReziΔ. 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, mwah π this was perl v5.34.0, dated 2022-06-28 β go forth and find those Pods π¦β¨
π¦ 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