+my $msg = sub { "Indirect call of method \"$_[1]\" on object \"$_[0]\"" };
+
+sub unimport {
+ shift;
+
+ my $hook;
+ while (@_) {
+ my $arg = shift;
+ if ($arg eq 'hook') {
+ $hook = shift;
+ } elsif ($arg eq ':fatal') {
+ $hook = sub { die $msg->(@_) };
+ }
+ last if $hook;
+ }
+ $hook = sub { warn $msg->(@_) } unless defined $hook;
+
+ $^H |= 0x00020000;
+ $^H{+(__PACKAGE__)} = _tag($hook);
+
+ ();