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

use happens at BEGIN time, so to make your strategy work you would need
BEGIN { push @INC, './dummy'; }
Its shorter to use lib
use lib './dummy';

Replies are listed 'Best First'.
Re^3: Conditionally faking a module
by NiJo (Friar) on Jan 15, 2010 at 17:29 UTC
    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.