Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: When -w and use strict aren't enough...

by graff (Chancellor)
on Nov 17, 2003 at 04:58 UTC ( #307562=note: print w/replies, xml ) Need Help??

in reply to When -w and use strict aren't enough...

A while back, someone posted an SoPW about having trouble maintaining someone else's complicated perl app (lots of separate perl files, lots of subs, etc), and it lead me to write and post this simple-minded tool, based on an idea that had worked pretty well for me when I had the same problem handling packages in C: scan all the source code files and build a listing that shows where subs are declared, and where they're called.

Of course, Perl is a bit tougher to parse than C, so my perl version of the tool is "less deterministic"... Still, I wonder if something like this might help in your case, at least to give a decent starting point for the diagnostics that you really want. Basically, it's a matter of comparing the sub calls against the sub declarations to see if there are any "outliers".

  • Comment on Re: When -w and use strict aren't enough...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://307562]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2021-06-13 21:48 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (57 votes). Check out past polls.