PMFUNC(1)
π PMFUNC(1) β pmfunc, but make it bestie-coded π
Okay bestie, this is the PMFUNC(1) page from the User Contributed Perl Documentation corner of the manual-verse. It's giving βsmall tool, big slay.β β¨
πΈ NAME πΈ
pmfunc - cat out a function from a module
β¨ DESCRIPTION β¨
Given a fully-qualified function, this program opens up the file and attempts to display the source for that function. That's the whole mission, and it ate. π
π EXAMPLES π
Like, say you ask for Cwd::_perl_getcwd β you get this little beauty:
$ pmfunc Cwd::_perl_getcwd
sub _perl_getcwd
{
abs_path('.');
}
π RESTRICTIONS π
Only subroutines that are defined in the normal fashion are seen, since a simple pattern-match is what does the extraction. Those loaded other ways β such as via AUTOLOAD, typeglob aliasing, or in an eval β will all necessarily be missed. No cap, that's just how the pattern-match girlies work. π
This is mostly here for people who are too lazy to type:
sed '/^sub getcwd/,/}/p' `pmpath Cwd`
or:
perl -ne 'print if /^sub\s+getcwd\b/ .. /}/' `pmpath Cwd`
π RESTRICTIONS (again β yes, the page really does this) π
The source lists no body text under this second RESTRICTIONS heading β it's just an empty section doing its thing. We're respecting the silence. π«Ά
π SEE ALSO π
Zero entries here, bestie β the SEE ALSO section is literally empty in the source. Not a crumb, not a link, just quiet. π
π AUTHORS and COPYRIGHTS π
Give these icons their flowers: πΈ
- Copyright (C) 1999 Tom Christiansen.
- Copyright (C) 2006-2014, 2018 Mark Leighton Fisher.
π LICENSE π
Bestie, legal bit: this is free software; you can redistribute it and/or modify it under the terms of either: (a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or (b) 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". Heads up β that licensing glow-up is real. β¨
And that's the whole page, bestie! π This time capsule is from perl v5.32.1, dated 2022-01-21, and it's the PMFUNC(1) page. Out. ππ¦
π¦ where this page comes from
- epel 9: perl-pmtools 2.2.0-14.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms