For the most part, I move any function or set of variables that is used in more than one Perl script to its own script and then use require to import it. And often, that shared script uses a module that isn't used in the rest of the script.
But I've found that sometimes I can import the module into the shared script... but sometimes I can't.
Is there a method to the madness, or do I just have to always stick the modules in and see if they work?