diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-02 11:31:53 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-02 11:31:53 +0000 |
commit | 8b6e382403e01ada78964d4a7f0d27d8a5bbd79d (patch) | |
tree | 577896caff5c482792dd3c63c0e579951237c426 /op.c | |
parent | 593fd89c99becb46cebe2c846522b9c3476a3ff5 (diff) | |
download | perl-8b6e382403e01ada78964d4a7f0d27d8a5bbd79d.tar.gz |
Retract changes #8254 and #8255, causes coredump in
'tie FH, "main"', reported by Abigail, culprit found by
Benjamin Sugars. Mirrors maintperl change #9950.
p4raw-link: @9950 on //depot/maint-5.6/perl: 86e3b6d76fb0afcf1f6b883c997e1a01ed17ab8e
p4raw-link: @8254 on //depot/perl: d38a0a1467f89c02cbd16ebdc31b41c6b552f379
p4raw-id: //depot/perl@9952
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -1361,31 +1361,6 @@ Perl_mod(pTHX_ OP *o, I32 type) PL_modcount++; return o; case OP_CONST: - if (o->op_private & (OPpCONST_BARE) && - !(type == OP_GREPSTART || type == OP_ENTERSUB || type == OP_REFGEN)) { - SV *sv = ((SVOP*)o)->op_sv; - GV *gv; - - /* Could be a filehandle */ - if ((gv = gv_fetchpv(SvPV_nolen(sv), FALSE, SVt_PVIO))) { - OP* gvio = newUNOP(OP_RV2GV, 0, newGVOP(OP_GV, 0, gv)); - op_free(o); - o = gvio; - } else { - /* OK, it's a sub */ - OP* enter; - gv = gv_fetchpv(SvPV_nolen(sv), TRUE, SVt_PVCV); - - enter = newUNOP(OP_ENTERSUB,0, - newUNOP(OP_RV2CV, 0, - newGVOP(OP_GV, 0, gv) - )); - enter->op_private |= OPpLVAL_INTRO; - op_free(o); - o = enter; - } - break; - } if (!(o->op_private & (OPpCONST_ARYBASE))) goto nomod; if (PL_eval_start && PL_eval_start->op_type == OP_CONST) { |