The database thing happens to be a non-hypothetical question for me. I'm not giving details because my actual situation involves Java, not Perl, but the concept is the same.
Comment on Re^4: How can I (safely) use packages of the same name but different versions?