PFUNC(1)

πŸ“¦
version 0.390.0 Β· 4 versions
, in opensuse-leap 16.0

πŸ’– 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