Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have been looking at some rudimentary code analysis of local Perl code. I had been getting by on the cheap by finding the beginning & end of subroutines by counting braces followed by looking for calls of the subroutines found within the same file.
The problem becomes magnitudes harder when I have started looking at looking at multiple modules at the same time. If modules A & B both define get_width(), the following becomes impossible to resolve:
sub is_too_large { my ($a, $b) = @_; return $a->get_width() > $b->get_width(); }
Do any of you smart people have any thoughts on how I can approach this problem? If there are CPAN modules which can help, I haven't found them yet.
Any insights offered would certainly be appreciated.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: finding subroutine dependencies?
by Joost (Canon) on Oct 01, 2009 at 21:52 UTC | |
by ELISHEVA (Prior) on Oct 02, 2009 at 07:10 UTC | |
by BioLion (Curate) on Oct 02, 2009 at 12:24 UTC | |
Re: finding subroutine dependencies?
by moritz (Cardinal) on Oct 01, 2009 at 22:08 UTC | |
Re: finding subroutine dependencies?
by jakobi (Pilgrim) on Oct 01, 2009 at 22:51 UTC | |
by Anonymous Monk on Oct 02, 2009 at 00:06 UTC | |
Re: finding subroutine dependencies?
by Khen1950fx (Canon) on Oct 02, 2009 at 09:52 UTC | |
by Anonymous Monk on Oct 03, 2009 at 00:31 UTC |