summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-05-28 16:37:26 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-05-28 16:37:26 +0000
commit2692f720225eadd5a0dcbb17c23107401470624b (patch)
tree03876fdfe1704aecbd4ccf8c4f2e8e01fb3ccbb5 /op.c
parent3ffaa9377e33221d8a6272d0232e8830ba4312ca (diff)
downloadperl-2692f720225eadd5a0dcbb17c23107401470624b.tar.gz
change#3449 wasn't doing enough
p4raw-link: @3449 on //depot/perl: 18228614d1dac2db099ef3d8846e53f44accce72 p4raw-id: //depot/perl@3493
Diffstat (limited to 'op.c')
-rw-r--r--op.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/op.c b/op.c
index fa286f841a..c1c6066568 100644
--- a/op.c
+++ b/op.c
@@ -5433,10 +5433,12 @@ ck_subr(OP *o)
{
GV *gv = (GV*)((SVOP*)gvop)->op_sv;
OP *sibling = o2->op_sibling;
+ SV *n = newSVpvn("",0);
op_free(o2);
- o2 = newSVOP(OP_CONST, 0,
- newSVpvn(GvNAME(gv),
- GvNAMELEN(gv)));
+ gv_fullname3(n, gv, "");
+ if (SvCUR(n)>6 && strnEQ(SvPVX(n),"main::",6))
+ sv_chop(n, SvPVX(n)+6);
+ o2 = newSVOP(OP_CONST, 0, n);
prev->op_sibling = o2;
o2->op_sibling = sibling;
}