Skip Menu |

This queue is for tickets about the Text-Names CPAN distribution.

Report information
The Basics
Id: 119738
Status: patched
Worked: 5 min
Priority: 0/
Queue: Text-Names

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.44
Fixed in: (no value)



Subject: Space in regex generates warning
This warning appears: Unescaped left brace in regex is deprecated here, passed through in regex; marked by <-- HERE in m/[A-Z]{ <-- HERE 2, } [A-Z]{2,}/ at /Users/hornenj/perl5/perlbrew/perls/perl-5.25.7/lib/site_perl/5.25.7/Text/Names.pm line 1250, <DATA> line 1. I suspect that the problem is the space after "2,": if ($n =~ /[a-z]/ and $n !~ /[A-Z]{2, } [A-Z]{2,}/) {
Thanks for reporting. I have now fixed this in 0.45. On Fri Jan 06 09:59:18 2017, NHORNE wrote: Show quoted text
> This warning appears: > > Unescaped left brace in regex is deprecated here, passed through in > regex; marked by <-- HERE in m/[A-Z]{ <-- HERE 2, } [A-Z]{2,}/ at > /Users/hornenj/perl5/perlbrew/perls/perl- > 5.25.7/lib/site_perl/5.25.7/Text/Names.pm line 1250, <DATA> line 1. > > I suspect that the problem is the space after "2,": > > if ($n =~ /[a-z]/ and $n !~ /[A-Z]{2, } [A-Z]{2,}/) {