PERL Dependency

  • David Busby

    David Busby - 2008-03-04

    I can't imagine I am the only one that has issues with PERL dependencies.  I found this thread:

    I would really like to have some way of generating a dependency graph or a report.  So that if I am changing function A I know everywhere it is called and I can specifically re-test these areas to make sure nothing was adversely affected.

    • Jan Ploski

      Jan Ploski - 2008-03-04

      Call tree reconstruction using static source code analysis is not possible in general for dynamic languages such as Perl. If you only program procedurally, it should be achievable by parsing the source code using the PPI module, if you are so inclined. I know of no higher level module that would support it directly.

    • David Busby

      David Busby - 2008-03-06

      That is what the thread seems to indicate that it is processing the source code not compiled.  Just thought it would be helpful to be able to show that If I change function F I can no hit a command key similar to F3 to scan the source looking for all modules that call that function.  Just like doing a source search just in a better interface perhaps.  Just a thought at early hours with little coffee.


Log in to post a comment.