I have "family" of modules that I'm having trouble testing. Roughly, the hierarchy looks like
"A" is an acronym for our development group, so all of our perl modules start with that. In A::B::C2 and A::B::C1::D there is a line like
What seems to be happening is that A::B and A::B::C2 are loaded from blib/lib, then A::B::C1::D gets loaded from the installed area which is in PERL5LIB. That is also where A::X lives. If I flip the order to the use lines to
Then A::B::C1::D is loaded from blib/lib and A::B::C2 is loaded from the installed area. I can't find any way to make sure that all three of the packages in this family get loaded from blib/lib. I've tried playing with @INC with no luck.
How can I convince Perl to use blib/lib first for all of my modules?