Subject: | yapp outputs two "deprecated" warnings on perl v5.22.0 |
Date: | Wed, 26 Aug 2015 18:15:38 -0700 |
To: | bug-Parse-Yapp [...] rt.cpan.org |
From: | Rick Klement <rklement [...] pacbell.net> |
Perl v5.22.0 has deprecated using unescaped { in a regex. yapp has two
of them.
OS: Linux arch 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 09:07:24 CEST 2015 i686 GNU/Linux
from arch pacman: perl-parse-yapp 1.05-6
Here's a diff of the fix I've made:
--- /usr/share/perl5/vendor_perl/Parse/Yapp/Parse.pm 2015/08/26 17:36:15 1.1
+++ /usr/share/perl5/vendor_perl/Parse/Yapp/Parse.pm 2015/08/26 17:39:16 1.2
@@ -880,7 +880,7 @@
return($1, [ $1, $lineno[0] ]);
};
- $$input=~/\G{/gc
+ $$input=~/\G\{/gc
and do {
my($level,$from,$code);
@@ -907,7 +907,7 @@
and return('START',[ undef, $lineno[0] ]);
$$input=~/\G%(expect)/gc
and return('EXPECT',[ undef, $lineno[0] ]);
- $$input=~/\G%{/gc
+ $$input=~/\G%\{/gc
and do {
my($code);