From: | dam [...] cpan.org |
Subject: | [PATCH] possible precedence problem warning with perl 5.20 |
In Debian we are currently applying the following patch to
iCal-Parser-SAX.
We thought you might be interested in it too.
Description: possible precedence problem warning with perl 5.20
From perl5200delta:
· Possible precedence issue with control flow operator
(W syntax) There is a possible problem with the mixing of a
control flow operator (e.g. "return") and a low-precedence
operator like "or". Consider:
sub { return $a or $b; }
This is parsed as:
sub { (return $a) or $b; }
Which is effectively just:
sub { return $a; }
The patch is tracked in our Git repository at
https://anonscm.debian.org/cgit/pkg-perl/packages/libical-parser-sax-perl.git/plain/debian/patches/precedence.patch
Thanks for considering,
Damyan Ivanov,
Debian Perl Group