projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
stop t/op/write.t failures under stdio by always closing files
[p5sagit/p5-mst-13.2.git]
/
gv.c
diff --git
a/gv.c
b/gv.c
index
b297cb6
..
aa2befc
100644
(file)
--- a/
gv.c
+++ b/
gv.c
@@
-693,6
+693,10
@@
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) {