in reply to Redefined subroutines in multiple libraries

If you use packages, you create two distinct namespaces, which resolves the ambiguity. pkg1:mysub and pkg2::mysub are recognized to be separate and unrelated.