PFUNC(1)
π PFUNC(1) β pfunc, the perl-function grep bestie π
okay so this is the User Contributed Perl Documentation page for PFUNC(1), and the main character is pfunc. she's here to help you find subroutine calls, and honestly? iconic. π΅οΈββοΈπ
πΈ NAME πΈ
pfunc β literally grep for perl functions. no cap. β¨
β¨ SYNOPSIS β¨
pfunc subroutine FILES...
π¦ DESCRIPTION π¦
okay so pfunc searches the named FILES for all calls to the given subroutine. it reports back the file and line number each call is found on, along with what sort of call it is. the vibe check is:
- function β
foo() - class method β
Class->foo() - object method β
$obj->foo()
π EXAMPLE π
for example, bestie:
$ pfunc isa /usr/share/perl/5.6.1/*.pm
Called as function in /usr/share/perl/5.6.1/CGI.pm at line 316
Called as function in /usr/share/perl/5.6.1/CGI.pm at line 327
Called as function in /usr/share/perl/5.6.1/CGI.pm at line 397
Called as function in /usr/share/perl/5.6.1/CGI.pm at line 494
Called as function in /usr/share/perl/5.6.1/CGI.pm at line 495
Called as object method in /usr/share/perl/5.6.1/CPAN.pm at line 4957
Called as function in /usr/share/perl/5.6.1/Dumpvalue.pm at line 191
Called as function in /usr/share/perl/5.6.1/Dumpvalue.pm at line 218
Called as function in /usr/share/perl/5.6.1/Dumpvalue.pm at line 248
Called as function in /usr/share/perl/5.6.1/Dumpvalue.pm at line 251
Called as function in /usr/share/perl/5.6.1/Dumpvalue.pm at line 254
Called as object method in /usr/share/perl/5.6.1/Shell.pm at line 28
Called as object method in /usr/share/perl/5.6.1/base.pm at line 12
π NOTES π
real talk: Its not fast, but its accurate. that's the whole note, and it's giving honesty. π«Ά
π AUTHOR π
Michael G Schwern <schwern@pobox.com> wrote this one. absolute legend behavior. π
π SEE ALSO π
Module::Info β that's the reference, bestie. iykyk. π
mwah π this page is from perl v5.42.0, dated 2024-08-31, and it's literally PFUNC(1) β bye bestie, go grep those functions π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Module-Info 0.390.0-bp160.1.11 Β· SUSE-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms