condense op handling
[scpubgit/Q-Branch.git] / lib / SQL / Abstract.pm
index 0eff852..6043a43 100644 (file)
@@ -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