[Catalyst] Perl::Critic & Catalyst's default
Paul Makepeace
paulm at paulm.com
Fri Jul 30 18:07:48 GMT 2010
One of Critic's tests causes a "Subroutine name is a homonym for
builtin keyword" whenever it encounters "sub default" since "default"
is now a perl keyword thanks to the new-ish given/when switch
construct. I think the same applies to "sub index".
One solution is to use,
sub default : Path { ## no critic (ProhibitBuiltinHomonyms)
Is there another non-keyword sub Catalistas recommend? Or one being considered?
Paul
More information about the Catalyst
mailing list