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.
Comment on
Re^3: Conditionally faking a module
In Section
Seekers of Perl Wisdom