Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: regexp for finding all function calls

by merlyn (Sage)
on Jul 08, 2009 at 02:01 UTC ( #778096=note: print w/replies, xml ) Need Help??


in reply to regexp for finding all function calls

See B::Xref, which should be able to identify all calls.

-- Randal L. Schwartz, Perl hacker

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

  • Comment on Re: regexp for finding all function calls

Replies are listed 'Best First'.
Re^2: regexp for finding all function calls
by marksman (Novice) on Jul 08, 2009 at 18:10 UTC
    Thanks,
    B::Xref looks very useful now that I have a second look at it. Actually Fletch mentioned that in his first reply, so thanks also to Fletch.

    I am able to extract the line numbers of calls to Mod::func(). I'm still wondering whether B::Xref can actually display the original code from that function call. Does anyone know if that's possible?

    Right now I still don't know how many lines each function call spans.