Pod(3pm)
π Pod(3pm) β Tk::Pod, the Pod browser bestie π
okay so this is Tk::Pod, the Pod browser toplevel widget β a whole manual-page viewer living in a Toplevel widget, from the User Contributed Perl Documentation corner of the world. It's giving "read your docs in a cute little window." π
β¨ NAME β¨
Tk::Pod β Pod browser toplevel widget. That's it, that's the whole name. Slay. π
πΈ SYNOPSIS πΈ
use Tk::Pod
Tk::Pod->Dir(@dirs) # add dirs to search path for Pod
$pod = $parent->Pod(
-file = > $name, # search and display Pod for name
-tree = > $bool # display pod file tree
);
so basically you use Tk::Pod, you can push some dirs onto the search path with Tk::Pod->Dir(@dirs), and then you spin up a widget with $parent->Pod(...). Iconic. π¦
π DESCRIPTION π
Simple Pod browser with hypertext capabilities in a Toplevel widget. Like, you get your Pod, you get clickable links, you get a whole window for it. Main character energy fr fr. β¨
π OPTIONS π
-treeβ turns the tree view on or off by default. Default is false. So if you want the tree, you gotta say so. π³-exitbuttonβ adds an exit entry to the menu. ngl this one's only useful for standalone pod readers. Default is false. And heads up bestie: this option can only be set at construction time. Set it later and it just won't happen, no cap. πͺ- Other options β they're all propagated to the embedded
Tk::Pod::Textwidget. So whatever it knows, it passes along. π«Ά
π BUGS π
okay so if you set -file while you're creating the Pod widget, like this:
$parent->Pod(-tree => 1, -file => $pod);
then the title will not be displayed correctly. π Why? Because the internal setting of -title may override the title setting caused by -file. So it's better to configure -file separately:
$pod = $parent->Pod(-tree => 1);
$pod->configure(-file => $pod);
fr fr, do it in two steps. Your title will thank you. π
π SEE ALSO π
Tk::Pod_usageTk::Pod::TexttkpodperlpodGtk2::Ex::PodViewerPrima::PodView
a whole little friend group of Pod viewers, iykyk. π
π AUTHOR π
Nick Ing-Simmons <nick@ni-s.u-net.com>
Current maintainer is Slaven Rezic <slaven@rezic.de>.
Copyright (c) 1997-1998 Nick Ing-Simmons. 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 π
β this little gem is from perl v5.34.0, dated 2022-06-28, and it goes by Pod(3pm) on the tin. Obsessed. Go read some Pod. β¨π¦π
π¦ 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