I'm currently on a hunt for warnings through our codebase. I've got rid of all of them except a lot of
Subroutine XXXX redefined at YYYY.pm line 1584
which forms a list of all subroutines in YYYY. This implies that the package is being included more than once. However, there are a lot of interdependencies between these modules, so simply removing references to YYYY from all but the parent package did not work.
What I would like to know is if there is any way to stop this happening, or will I just have to live with the warnings? The feature I have in mind is similar to the PHP command 'require_once'.