---
name: "pfunc"
section: "1p"
platform: "linux"
package: "libmodule-info-perl"
version: "0.39-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pfunc"
---

# pfunc(1p)

grep for perl functions

## NAME

pfunc - grep for perl functions

## SYNOPSIS

```
    pfunc subroutine FILES...
```

## DESCRIPTION

**pfunc** searches the named FILES for all calls to the given subroutine.  It will report back the file and line number each call is found on along with what sort of call it is

```
    function            foo()
    class method        Class->foo()
    object method       $obj->foo()
```

## EXAMPLE

```
    $ 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

Its not fast, but its accurate.

## AUTHOR

Michael G Schwern \<schwern@pobox.com\>

## SEE ALSO

Module::Info
