From: Dagfinn Ilmari Mannsåker Date: Wed, 19 May 2021 11:29:49 +0000 (+0100) Subject: Fix syntax error on perl 5.8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c5dd2e634e58245084b479db3c9682ccad12c32d;p=dbsrgits%2FSQL-Abstract.git Fix syntax error on perl 5.8 --- diff --git a/lib/SQL/Abstract/Plugin/ExtraClauses.pm b/lib/SQL/Abstract/Plugin/ExtraClauses.pm index 79912bf..bad59a8 100644 --- a/lib/SQL/Abstract/Plugin/ExtraClauses.pm +++ b/lib/SQL/Abstract/Plugin/ExtraClauses.pm @@ -123,7 +123,7 @@ sub _expand_select { return $exp unless my $setop = (my $sel = $exp->{-select})->{setop}; if (my @keys = grep $sel->{$_}, @$before_setop) { my %inner; @inner{@keys} = delete @{$sel}{@keys}; - unshift @{(values(%$setop))[0]{queries}}, + unshift @{(values(%$setop))[0]->{queries}}, { -select => \%inner }; } return $exp;