Module::Stubber is a Perl module that lets you create dummy stubs for modules which may not be importable, either because they are not a hard dependency for your code, or they do not function correctly on the target platform.
The proper usage for Module::Stubber is
use Module::Stubber $module_name => $import_spec, other => options;
Thus, assuming the module My::Foo is installed, calling
use Module::Stubber 'My::Foo' => [(foo_frob foo_bork)];
is equivalent to
use My::Foo qw(foo_frob foo_bork);
SYNOPSIS
use Module::Stubber 'Possibly::Unavailable::Module' => [qw(some symbols)];
some();
symbols();
my $maybe_dummy = Possibly::Unavailable::Module->new();
$maybe_dummy->anything();
Product's homepage
Requirements:
· Perl