in reply to Re^2: Conditionally faking a module
in thread Conditionally faking a module

You are right with the BEGIN block, but 'use lib' adds to the high priority end of @INC, so the real package is never found.