From: Matt S Trout Date: Sun, 6 Oct 2019 01:08:19 +0000 (+0000) Subject: simplify the plugin thing X-Git-Tag: v2.000000~3^2~37 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=51561b89777f197f134ad92ac38733a6b161ebdf;p=dbsrgits%2FSQL-Abstract.git simplify the plugin thing --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index d5a8637..83ba29f 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);