Subject: | False positive in CodeLayout::RequireTrailingCommas |
I'm not sure yet if this is a P::C bug or a PPI bug...
The following code fragment:
my $var = ( 1 > 2 ?
0 : 1);
triggers the following false warning:
List declaration without trailing comma at line 2, column 18. See
page 17 of PBP. (Severity: 1)
Something appears to be wrong with $expr->schildren() or our use of it,
because it is returning 7 instead of 1.
-- Chris