Subject: | [Documentation::ProhibitUnbalancedParens] Blank line in a POD section can cause brace unmatching |
For some reason, the attached file 'fail.txt' does this:
perlcritic -s Documentation::ProhibitUnbalancedParens /tmp/fail.txt
Unclosed paren "{" at line 3, column 1. (no explanation). (Severity: 2)
Unopened close paren "}" at line 6, column 1. (no explanation). (Severity: 2)
Removing the ^$ line resolves the violation
perlcritic -s Documentation::ProhibitUnbalancedParens /tmp/pass.txt
/tmp/pass.txt source OK
Subject: | fail.txt |
=begin IGNORE ME
{
content
}
=end IGNORE
Subject: | pass.txt |
=begin IGNORE ME
{
content
}
=end IGNORE