Subject: | Subroutines::ProhibitSubroutinePrototypes: add an exception for constant functions |
For a definition of "constant functions", see "Constant functions" in
perlsub: http://perldoc.perl.org/perlsub.html#Constant-Functions
An empty prototype () is required for Perl to consider inlining the
function as a constant.
So, currently this rule is against a good Perl idiom.
Note that using "## no critic ()" as a workaround would be
counter-productive as it would make the code less readable.
--
Olivier Mengué - http://o.mengue.free.fr/