I am seeking a way to parse modules in an effort to drive
away the demons of runtime errors.
In the OOP method, one may end up with many packages, some
of which get used in certain programs, while others are
not needed. A single change in an object's method API will
require many changes in other packages.
Currently, this can only be remedied by grep'ing the code
to seek out and exorcise the offending ancient code. I seek
a way to "compile" a given piece of code such that any
discrepencies between a module's API and the code that is
calling that module will be revealed at compile time. I call
this compiling only because it should be smart enough to understand
the perl language and match up a call to a perl module with the
correct method. Of course we cannot expect to validate that the function is
passing the correct order/number of parameters... however the ability
to flag instances where the code will break if run is sufficient.
Perhaps someone has an even better way? Perhaps a module on CPAN has
this capability already? I seek your advice.