summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-07 10:33:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-07 10:33:38 +0000
commit66e4e5d58b6f1a43b01a82c3d198f3a5add40b57 (patch)
tree5dd1c73d5f2a90419ada9a5416d04443f259011b /perl.c
parent82d8f8347aac1265a123c7171e3613e510568391 (diff)
downloadperl-66e4e5d58b6f1a43b01a82c3d198f3a5add40b57.tar.gz
Avoid to load the *+ and *- globs too early.
To silence spurious interpolation warnings, merely create the stash entry for them. Ensure that the re::Tie::Hash::NamedCapture module is always loaded when we have created the tied hashes %+ and %-. Revert change #30483, which is now unnecessary. p4raw-link: @30483 on //depot/perl: 73f68b39467596f862aade4f4b46d6061aa98bd3 p4raw-id: //depot/perl@30490
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index aac8181fa1..7acf6641d9 100644
--- a/perl.c
+++ b/perl.c
@@ -4722,8 +4722,10 @@ S_init_postdump_symbols(pTHX_ register int argc, register char **argv, register
(void) get_av("main::F", TRUE | GV_ADDMULTI);
}
/* touch @- and @+ arrays to prevent spurious warnings 20020415 MJD */
- (void) get_av("main::-", TRUE | GV_ADDMULTI);
- (void) get_av("main::+", TRUE | GV_ADDMULTI);
+ /* (but don't load the glob, since that requires loading
+ * re::Tie::Hash::NamedCapture, and miniperl can't do that */
+ (void) hv_fetch(PL_defstash, "-", 1, GV_ADDMULTI);
+ (void) hv_fetch(PL_defstash, "+", 1, GV_ADDMULTI);
}
STATIC void