2
package Module::Install::Base;
6
# Suspend handler for "redefined" warnings
8
my $w = $SIG{__WARN__};
9
$SIG{__WARN__} = sub { $w };
12
### This is the ONLY module that shouldn't have strict on
18
my ($class, %args) = @_;
20
foreach my $method ( qw(call load) ) {
21
next if defined &{"$class\::$method"};
22
*{"$class\::$method"} = sub {
23
shift()->_top->$method(@_);
27
bless( \%args, $class );
52
Module::Install::Base::FakeAdmin->new;
58
$_[0]->admin->VERSION;
63
package Module::Install::Base::FakeAdmin;
67
$fake ||= bless(\@_, $_[0]);
74
# Restore warning handler
76
$SIG{__WARN__} = $SIG{__WARN__}->();