This patch fixes a test suite failure in t/codingstd/perlcritic.t

The minimum required version for Perl::Critic was 1.03, but the
&default_forbidden_words method was not introduced until 1.082.  I've
bumped up the version number in the test to ensure it skips properly.

Also, the Perl::Critic docs state that &default_forbidden words is a
method, not a function.  It was called as a function, but I changed it
to a class method call to ensure that if it really is required to be a
method in the future, things don't break.

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/

Attachment: parrot_perl_critic_version.patch
Description: 253545805-parrot_perl_critic_version.patch

Reply via email to