in reply to layout/configuration of deployed files

keep in mind that you could easily hide your interface to getting the right library behind a package

something like use theRightLibrary;

and then have theRightLibrary.pm do the actual use vars / use lib dance.

Does make you add theRightLibrary.pm to your old code, but once all code instances have the module available every script you have will work the same way.