The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mic::Bind

SYNOPSIS

    use Mic::Bind
        'Foo' => 'Foo::Fake', 
        'Bar' => 'Bar::Fake', 
    ;
    use Foo;
    use Bar;

DESCRIPTION

The implementation of a class can be easily changed from user code e.g. after the above code runs, Foo and bar will be bound to fake implementations (e.g. to aid with testing), instead of the implementations defined in their respective modules.