Subject: | Warnings about {} in regex in 5.17 and later |
While building latest blead:
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/"DL_FUNCS" => { <-- HERE }/ at t/MM_OS2.t line
45.
Could be fixed with this patch:
diff --git a/cpan/ExtUtils-MakeMaker/t/MM_OS2.t b/cpan/ExtUtils-
MakeMaker/t/MM_OS2.t
index 4d88e85..20a6b15 100644
--- a/cpan/ExtUtils-MakeMaker/t/MM_OS2.t
+++ b/cpan/ExtUtils-MakeMaker/t/MM_OS2.t
@@ -42,7 +42,7 @@ delete $mm->{SKIPHASH};
my $res = $mm->dlsyms();
like( $res, qr/baseext\.def: Makefile/,
'... without flag, should return make targets' );
-like( $res, qr/"DL_FUNCS" => { }/,
+like( $res, qr/"DL_FUNCS" => \{\s*\}/,
'... should provide empty hash refs where necessary' );
like( $res, qr/"DL_VARS" => \[]/, '... and empty array refs too' );