04bfb0
From d8422270033e0728e6a9cecb24cdbd123656e367 Mon Sep 17 00:00:00 2001
04bfb0
From: Tony Cook <tony@develop-help.com>
04bfb0
Date: Mon, 17 Jun 2019 11:46:00 +1000
04bfb0
Subject: [PATCH] (perl #134193) make the varname match the %[+-] names
04bfb0
MIME-Version: 1.0
04bfb0
Content-Type: text/plain; charset=UTF-8
04bfb0
Content-Transfer-Encoding: 8bit
04bfb0
04bfb0
when loading Tie/Hash/NamedCapture.pm for the long name variants
04bfb0
04bfb0
Signed-off-by: Petr Písař <ppisar@redhat.com>
04bfb0
---
04bfb0
 gv.c | 4 ++--
04bfb0
 1 file changed, 2 insertions(+), 2 deletions(-)
04bfb0
04bfb0
diff --git a/gv.c b/gv.c
04bfb0
index 2b83680898..652f5e737d 100644
04bfb0
--- a/gv.c
04bfb0
+++ b/gv.c
04bfb0
@@ -2032,11 +2032,11 @@ S_gv_magicalize(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len,
04bfb0
                     sv_magic(MUTABLE_SV(av), (SV*)n, PERL_MAGIC_regdata, NULL, 0);
04bfb0
                     SvREADONLY_on(av);
04bfb0
 
04bfb0
-                    require_tie_mod_s(gv, '-', "Tie::Hash::NamedCapture",0);
04bfb0
+                    require_tie_mod_s(gv, '+', "Tie::Hash::NamedCapture",0);
04bfb0
 
04bfb0
                 } else          /* %{^CAPTURE_ALL} */
04bfb0
                 if (memEQs(name, len, "\003APTURE_ALL")) {
04bfb0
-                    require_tie_mod_s(gv, '+', "Tie::Hash::NamedCapture",0);
04bfb0
+                    require_tie_mod_s(gv, '-', "Tie::Hash::NamedCapture",0);
04bfb0
                 }
04bfb0
 		break;
04bfb0
 	    case '\005':	/* $^ENCODING */
04bfb0
-- 
04bfb0
2.20.1
04bfb0