|There's more than one way to do things|
How do you uncover needless module loads or missing loads in code.by iiijjjiii (Novice)
|on Jul 15, 2009 at 18:51 UTC||Need Help??|
iiijjjiii has asked for the
wisdom of the Perl Monks concerning the following question:
I find the following crop up in scripts as they are maintained over time.
1. Load a module that is never used.
2. Forget to explicitly load a module.
In a separate module...
If package Foo is ever modified such that it no longer uses Bar, the script goes kaboom.
Any suggestions on how to reveal these in scripts other than scanning the code? Do you use any practices to prevent them?