When you inherit a code base there might be uses of old, deprecated modules that you'd like to avoid. You can grep through the code-base trying to find all the locations, but that will not stop some of the new (or old) developers to start using the module again. You can write a test-case doing the grepping, but I found Modules::ProhibitEvilModules Perl Critic rule that will do it for you.