summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-07 16:32:48 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-07 16:32:48 +0000
commite879d94fd490498d2ab8c584f625025bbfa1d542 (patch)
tree655e7569d95fc63957f6dcbbc2c5c3466be8a886 /gv.c
parent2575c402a8f9be55f848bdfb219afbf912c50ac1 (diff)
downloadperl-e879d94fd490498d2ab8c584f625025bbfa1d542.tar.gz
Use another method to avoid the "possible interpolation" warning
for @- and @+ : do this directly from the lexer (patch by Yves Orton.) This way, @- and @+ aren't preloaded anymore. Avoid to require re::Tie::Hash::NamedCapture when the *- or *+ globs are created, this was breaking the build due to miniperl's inability to load it. p4raw-id: //depot/perl@30496
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index a75203bfc7..f0f21459a6 100644
--- a/gv.c
+++ b/gv.c
@@ -1225,7 +1225,10 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags,
SvREADONLY_on(tie);
SvREADONLY_on(av);
- require_tie_mod(gv, name, stashname, "FETCH", 0);
+ if (sv_type == SVt_PVHV)
+ require_tie_mod(gv, name, stashname, "FETCH", 0);
+ else
+ SvREFCNT_dec(stashname);
break;
}