summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorStephen McCamant <smcc@mit.edu>2002-12-09 19:57:07 -0500
committerhv <hv@crypt.org>2002-12-11 10:35:01 +0000
commitcaec1979d2248e31dd6f584f10772d0aa0d7cf92 (patch)
tree8d80f53d24af416e7e1ba8f125db0654a963deea /perly.y
parentdcdfe71d1fa3e8177f52e29e82a4b89579e68ad2 (diff)
downloadperl-caec1979d2248e31dd6f584f10772d0aa0d7cf92.tar.gz
Re: Precedence of ? :
Message-Id: <20021210055707.974F073CCC@syllepsis> p4raw-id: //depot/perl@18285
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index 7d39242160..4e00281bcb 100644
--- a/perly.y
+++ b/perly.y
@@ -627,7 +627,7 @@ term : termbinop
| termunop
| anonymous
| termdo
- | term '?' term ':' term
+ | term '?' expr ':' term
{ $$ = newCONDOP(0, $1, $3, $5); }
| REFGEN term /* \$x, \@y, \%z */
{ $$ = newUNOP(OP_REFGEN, 0, mod($2,OP_REFGEN)); }