FAQ
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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJul 30, '10 at 6:07p
activeJul 30, '10 at 6:07p
posts1
users1
websitecatalystframework.org
irc#catalyst

1 user in discussion

Paul Makepeace: 1 post

People

Translate

site design / logo © 2022 Grokbase