Pod::FindPods(3pm)

πŸ“¦
version 0.9943 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 documentation
  • pragma β€” for pragma documentation like var or strict
  • mod β€” core or CPAN modules
  • script β€” 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