Skip Menu |

This queue is for tickets about the Lingua-Romana-Perligata CPAN distribution.

Report information
The Basics
Id: 118978
Status: resolved
Priority: 0/
Queue: Lingua-Romana-Perligata

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

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Compile warning when using Lingua::Romana::Perligata with new perl
When using new perl 'use Lingua::Romana::Perligata;' cause compile warning: Unescaped left brace in regex is deprecated here, passed through in regex; marked by <-- HERE in m/^[\$%@]{ <-- HERE $/ at lib/Lingua/Romana/Perligata.pm line 1222. Following patch fixes this problem: --- lib/Lingua/Romana/Perligata.pm 2016-07-07 02:32:48.000000000 +0200 +++ lib/Lingua/Romana/Perligata.pm 2016-11-26 18:14:06.143056909 +0100 @@ -1219,7 +1219,7 @@ sub STATEMENT::translate { elsif ($_[0]{V}{diamond}) { $result = "<" . substr($dative,1) . ">"; } - elsif ($verb =~ /^[\$%@]{$/) { + elsif ($verb =~ /^[\$%@]\{$/) { $result = $verb . $_[0]{A}[0]->translate . '}'; } elsif (! $_[0]{V}{operator}) { Please fix it, so Lingua::Romana::Perligata can be used also with new perl versions.
Subject: Re: [rt.cpan.org #118978] Compile warning when using Lingua::Romana::Perligata with new perl
Date: Sun, 27 Nov 2016 08:07:34 +1100
To: bug-Lingua-Romana-Perligata [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Many thanks for the report (and the patch!) I've just uploaded the new version to CPAN. Damian