in reply to Messing with %INC.

Your code looks like a slightly simpler version of Module::Reload.

Replies are listed 'Best First'.
Re^2: Messing with %INC.
by Theodore (Hermit) on Apr 24, 2014 at 13:32 UTC
    Module::Reload reloads everything. It's actually a simpler way to do what Module::Reload::Selective does, which was my first option, but a bit complicated for the specific case.