From: Matt S Trout Date: Sun, 6 Oct 2019 01:08:19 +0000 (+0000) Subject: simplify the plugin thing X-Git-Tag: v1.90_01~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=316b9be9e2ddadf4dad5b0e051aa6f975d95698a;p=dbsrgits%2FSQL-Abstract.git simplify the plugin thing --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 9d9e204..330780a 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -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);