Your code looks like a slightly simpler version of Module::Reload.
In reply to Re: Messing with %INC. by Anonymous Monk in thread Messing with %INC. by Theodore