Subject: | Deprecation warnings when run on Perl 5.22 |
Date: | Mon, 31 Aug 2015 16:45:14 -0400 |
To: | bug-RT-Client-REST [...] rt.cpan.org |
From: | Mike Andrews <mandrews [...] bit0.com> |
When run under Perl 5.22, these two deprecation warnings are generated:
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in
m/[a-z][\w-]*|C(?:ustom)?F(?:ield)?-[#\s\w:()?/-]+|CF\.{ <-- HERE
[#\s\w:()?/-]+}/ at
/usr/local/lib/perl5/site_perl/RT/Client/REST/Forms.pm line 17.
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/^(?:cf|customfield)(?:-|\.{ <-- HERE
)([#\s\w_:()?/-]+)/ at
/usr/local/lib/perl5/site_perl/RT/Client/REST/Object.pm line 466.
The patch is pretty simple (and attached): stick '\' before {
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.