in reply to How do you uncover needless module loads or missing loads in code.

Your issue seems to be "How do I prevent redundant module loads" rather than "How do I detect unused modules". If that is the case then don't worry about it. Perl only loads the module once so the "extra" use statements do not represent a significant processing hit. They do however provide useful documentation - they indicate that the code requires those modules. So long as the "extra" use statements aren't causing trouble due to module load order issues or some such, leave them be!


True laziness is hard work
  • Comment on Re: How do you uncover needless module loads or missing loads in code.