From: Matt S Trout Date: Thu, 11 Apr 2019 01:17:40 +0000 (+0000) Subject: make non-ascii operators work X-Git-Tag: v2.000000~3^2~254 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=23794f283711a037a76a938ee187c6c501edb966;p=dbsrgits%2FSQL-Abstract.git make non-ascii operators work --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 276b6ad..c7e0759 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -588,6 +588,8 @@ sub _expand_hashpair { } if ($k =~ /^-/) { return $self->_expand_hashpair_op($k, $v); + } elsif ($k =~ /^[^\w]/i) { + return $self->_expand_op(-op, [ $k, @$v ]); } return $self->_expand_hashpair_ident($k, $v); }