summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-20 16:27:13 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-20 16:27:13 +0000
commitafd1915d434259c875b8da032bfece22c20f714f (patch)
treedf624cbff512b5e4277e03be7f0cf026f8efd77a /op.c
parent14190b26cd9cfe4309de569863b29ab40645cfe0 (diff)
downloadperl-afd1915d434259c875b8da032bfece22c20f714f.tar.gz
autovivify open($fh[0],...) properly
p4raw-id: //depot/perl@5836
Diffstat (limited to 'op.c')
-rw-r--r--op.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/op.c b/op.c
index 0cdeb92b28..3d5512683b 100644
--- a/op.c
+++ b/op.c
@@ -5520,6 +5520,13 @@ Perl_ck_fun(pTHX_ OP *o)
name = GvNAME(gv);
len = GvNAMELEN(gv);
}
+ else if (kid->op_type == OP_AELEM
+ || kid->op_type == OP_HELEM)
+ {
+ name = "__ANONIO__";
+ len = 10;
+ mod(kid,type);
+ }
if (name) {
SV *namesv;
targ = pad_alloc(OP_RV2GV, SVs_PADTMP);