summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-12-03 21:51:45 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-12-03 21:51:45 +0000
commit133706a6af5890d9737eb5c4dacb6252623311ea (patch)
tree9cfa88f97ca4f18c0a72ee7f852eb9feda593dfe /gv.c
parent7a1e2023d90d879c7a6110f7be3e3c6e22bddc33 (diff)
downloadperl-133706a6af5890d9737eb5c4dacb6252623311ea.tar.gz
$foo::_ was wrongly forced as $main::_.
Since we still want "our $_" to be always forced to $main::_, deplace the forcing code at our-pad allocation time. (Making execution probably a tiny bit faster) p4raw-id: //depot/perl@23608
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gv.c b/gv.c
index 64acb371b3..7f630d94a2 100644
--- a/gv.c
+++ b/gv.c
@@ -702,10 +702,6 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type)
}
len = namend - name;
- /* $_ should always be in main:: even when our'ed */
- if (*name == '_' && !name[1])
- stash = PL_defstash;
-
/* No stash in name, so see how we can default */
if (!stash) {