summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-05-08 19:48:11 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-05-08 19:48:11 +0000
commit377b21bb1127ac5ca00091f9cc395d44f5adff24 (patch)
tree98997496e8cc4f7a591430e8cc8abf03d913c075 /op.c
parent5276f2afd97082686f7aed04c4d725334991a21d (diff)
downloadperl-377b21bb1127ac5ca00091f9cc395d44f5adff24.tar.gz
allow AV/HV dereferences on pseudohashes ($ph->{foo}[1], etc.)
p4raw-id: //depot/perl@3335
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 7e3beb2a9b..689873166b 100644
--- a/op.c
+++ b/op.c
@@ -5588,7 +5588,7 @@ peep(register OP *o)
char *key;
STRLEN keylen;
- if (o->op_private & (OPpDEREF_HV|OPpDEREF_AV|OPpLVAL_INTRO)
+ if ((o->op_private & (OPpLVAL_INTRO))
|| ((BINOP*)o)->op_last->op_type != OP_CONST)
break;
rop = (UNOP*)((BINOP*)o)->op_first;