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