summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/perly.y b/perly.y
index 7eda39e82f..a1a1f0da75 100644
--- a/perly.y
+++ b/perly.y
@@ -442,8 +442,7 @@ term : term ASSIGNOP term
| scalar %prec '('
{ $$ = $1; }
| star '{' expr ';' '}'
- { $$ = newBINOP(OP_GELEM, 0, newGVREF(0,$1),
- scalar($3)); }
+ { $$ = newBINOP(OP_GELEM, 0, $1, scalar($3)); }
| star %prec '('
{ $$ = $1; }
| scalar '[' expr ']' %prec '('