summaryrefslogtreecommitdiffstats
path: root/lib/smartmatch.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smartmatch.pm')
-rw-r--r--lib/smartmatch.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/smartmatch.pm b/lib/smartmatch.pm
index ad3caaa..19d0320 100644
--- a/lib/smartmatch.pm
+++ b/lib/smartmatch.pm
@@ -72,11 +72,11 @@ sub import {
unless $package->can('match');
}
- register($engine);
+ $^H{'smartmatch/engine'} = $engine;
}
sub unimport {
- unregister();
+ delete $^H{'smartmatch/engine'};
}
=head1 BUGS