From: Matt S Trout Date: Wed, 27 Mar 2019 01:22:40 +0000 (+0000) Subject: condense op handling X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4ef7eef2420ff8b5562353ec5f90ffa915fd91db;p=scpubgit%2FQ-Branch.git condense op handling --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 0eff852..6043a43 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -702,8 +702,7 @@ sub _expand_expr_hashpair_scalar { sub _expand_expr_hashpair_op { my ($self, $k, $v) = @_; - my $op = $k; - $op =~ s/^-(?=\w)//; + (my $op = $k) =~ s/^-(?=\w)//; $self->_assert_pass_injection_guard($op); # Ops prefixed with -not_ get converted