Mic::Bind
use Mic::Bind 'Foo' => 'Foo::Fake', 'Bar' => 'Bar::Fake', ; use Foo; use Bar;
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.
To install Mic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mic
CPAN shell
perl -MCPAN -e shell install Mic
For more information on module installation, please visit the detailed CPAN module installation guide.