summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-12-03 22:17:32 +0000
committerNicholas Clark <nick@ccl4.org>2004-12-03 22:17:32 +0000
commit2a797ae270630262a3ca6b2ac49b8cd050c5acea (patch)
treeb5960db835f678305baa10c7a59c7f8bada7658d /op.c
parent133706a6af5890d9737eb5c4dacb6252623311ea (diff)
downloadperl-2a797ae270630262a3ca6b2ac49b8cd050c5acea.tar.gz
gv_fullname4() can get rid of the main:: for us.
(well, actually, it never puts it in) p4raw-id: //depot/perl@23609
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/op.c b/op.c
index 96be415fd7..8fce725bdd 100644
--- a/op.c
+++ b/op.c
@@ -6273,9 +6273,7 @@ Perl_ck_subr(pTHX_ OP *o)
OP *sibling = o2->op_sibling;
SV *n = newSVpvn("",0);
op_free(o2);
- gv_fullname3(n, gv, "");
- if (SvCUR(n)>6 && strnEQ(SvPVX(n),"main::",6))
- sv_chop(n, SvPVX(n)+6);
+ gv_fullname4(n, gv, "", FALSE);
o2 = newSVOP(OP_CONST, 0, n);
prev->op_sibling = o2;
o2->op_sibling = sibling;