simplify the plugin thing
Matt S Trout [Sun, 6 Oct 2019 01:08:19 +0000 (01:08 +0000)]
lib/SQL/Abstract.pm

index 9d9e204..330780a 100644 (file)
@@ -344,7 +344,7 @@ sub make_binop_expander {
 sub plugin {
   my ($self, $plugin, @args) = @_;
   unless (ref $plugin) {
-    $plugin =~ s/\A\+/${\ref($self)}::Plugin::/;
+    $plugin =~ s/\A\+/${\__PACKAGE__}::Plugin::/;
     require(join('/', split '::', $plugin).'.pm');
   }
   $plugin->apply_to($self, @args);