in reply to Dependencies

This is a seriously difficult job that you've given yourself. You're basically planning to parse your Perl code, and as we all know "only perl can parse Perl".

One potentially bonkers way to do it would be to do something crazy with AUTOLOAD, as suggested by Kurt Starsinic in this article from LinuxMonth.

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Replies are listed 'Best First'.
Re: Re: Dependencies
by sarabob (Novice) on Dec 07, 2000 at 19:14 UTC
    That works to an extent - only it only reports calls done in that pass through the code, and doesn't support object calls. Hmmm.

    If I'm just going to report calls made during a call, I could always do global changes from

    sub foo {
    to
    sub foo { 
        print STDERR "foo"
    for all the modules. That would then dump out a list of used routines to STDERR (ie the web logs) as they were used. Hmmm.