Subject: | [PATCH] avoid warning in newer perl versions |
Hey Flavio!
5.16 deprecated the use of braces in regexes without escaping them, so
here's a small patch to make it work in newer perl versions without
triggering the warning.
Older perls should all work with this patch as well.
Abraço!
Subject: | newperls.patch |
--- a/DateTime-Incomplete-0.06/lib/DateTime/Incomplete.pm 2011-04-01 08:50:41.000000000 -0300
+++ b/lib/DateTime/Incomplete.pm 2012-08-11 20:54:36.000000000 -0300
@@ -562,7 +562,7 @@
foreach my $f (@formats)
{
$f =~ s/
- %{(\w+)}
+ %\{(\w+)\}
/
if ( $self->can($1) )
{