PODPATH(1p)

πŸ“¦
version 2.2.0 Β· 4 versions
, in ubuntu noble, ubuntu questing

✨ PODPATH(1p) ✨

User Contributed Perl Documentation β€” yes bestie, this is a Perl thing, and it's about to tell you where your Pod is hiding 🫢


πŸ’– NAME πŸ’–

podpath β€” print the path to the Pod. that's it. that's the whole job. she's simple, she's iconic, she serves. πŸ‘‘


🌸 DESCRIPTION 🌸

okay so here's the tea β˜• β€” podpath prints the path to the Pod. literally what it says on the tin, no cap.

Here's the little twist though: if the Pod name includes perl, podpath calls stdpods underneath. sneakyyyy, we love a delegation moment πŸ’…

Otherwise (no perl in the name, bestie), it searches down @INC, and here's the vibe check:

  • if there's a separate Pod file, it prints the .pod filename 🌱
  • otherwise, it prints the pm filename πŸ“¦

Why tho? Because this accommodates systems where the Pod lives in a separate file from the module file. some setups are like that, and she's not judging, she's just flexible ✨


πŸŽ€ EXAMPLES πŸŽ€

Lowkey the most satisfying part. Watch her work:

$ podpath Cwd
/usr/local/devperl/lib/5.00554/Cwd.pm

And she works with alternate installations, too β€” because she's for everyone, fr fr:

$ devperl -S podpath perlfunc
/usr/local/devperl/lib/5.00554/pod/perlfunc.pod
$ oldperl -S podpath IO::Handle
/usr/lib/perl5/i386-linux/5.00404/IO/Handle.pm
$ filsperl -S podpath Thread
/usr/local/filsperl/lib/5.00554/i686-linux-thread/Thread.pm

See how perlfunc got the .pod and the module-y ones got the .pm? that's the whole bit. ate. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

Go read these next, besties, they're all in the same friend group:


πŸ’œ AUTHORS and COPYRIGHTS πŸ’œ

  • Copyright (C) 1999 Tom Christiansen.
  • Copyright (C) 2006-2014, 2018 Mark Leighton Fisher.

shoutout to the legends 🫑


🌈 LICENSE 🌈

This is free software; you can redistribute it and/or modify it under the terms of either:

  1. the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
  2. the Perl "Artistic License".

(This is the Perl 5 licensing scheme.) ✨

Please note this is a change from the original pmtools-1.00 (still available on CPAN), as pmtools-1.00 were licensed only under the Perl "Artistic License". πŸ“’

okay that's the whole page, you're officially educated πŸ’– she ships as perl v5.36.0, dated 2022-10-14, and yes she answers to PODPATH(1p) β€” bye bestie, go find some Pods πŸŒΈπŸ¦‹πŸŽ€

πŸ“¦ where this page comes from