Subject: | Policy::CodeLayout::ProhibitTrailingWhitespace breaks under Perl 5.6.1 |
The "_escape" sub of
Perl::Critic::Policy::CodeLayout::ProhibitTrailingWhitespace uses the
subroutine "charnames::viacode", which does not exist in the version of
the "charnames" module distributed with 5.6.1 (which apparently cannot
be upgraded without upgrading the entire perl distribution). This
causes the tests in t/20_policy_prohibittrailingwhitespace to fail.
A suggested fix would be to skip those tests if the perl version is too
low (I think any 5.8 series perl has this function available).