Thursday, 29 July 2010

A word to the Mooses out there (Miice?)

Just found today with upgrade to latest Perl::Critic


this throws a problem with all the many


as it thinks they are unused private subroutines, not seeing them elsewhere in the code

To fix (thanks to the CPAN documentation for helping me get to this) add the following in your (.)perlcriticrc

private_name_regex = _(?!build_)\w+

This will pattern match and allow anything beginning _build_


1 comment:

garu said...

this is not at all related to the *content* of your post, but I thought I'd share anyway: the plural of Moose... is also Moose :)