Bug#942037: perldiag: bad example for "Unescaped left brace in regex is deprecated ..."
Jakub Wilk
jwilk at jwilk.net
Wed Oct 9 12:48:25 BST 2019
Package: perl
Version: 5.30.0-6
The perldiag manpage, in the section "Unescaped left brace in regex
is deprecated ..." reads:
The contexts where no warnings or errors are raised are:
[...]
• as the first character in a parenthesized grouping like
/foo({bar)/
/foo(?:{bar)/
But /foo({bar)/ does trigger the warning:
$ perl -pe '/foo({bar)/' < /dev/null
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/foo({ <-- HERE bar)/ at -e line 1.
-- System Information:
Architecture: i386
Versions of packages perl depends on:
ii dpkg 1.19.7
ii perl-base 5.30.0-6
ii perl-modules-5.30 5.30.0-6
ii libperl5.30 5.30.0-6
--
Jakub Wilk
More information about the Perl-maintainers
mailing list