TooMuchCode::ProhibitExcessiveColons - Finds '::::::::' in module names.
In an include statement, it is possible to have a lot of colons:
use Data::::Dumper;
... or
use Data::::::::Dumper;
As long as the number of colons is a multiple of two.
However, just because it is doable, does not mean it is sensible. use Data::::::Dumper will make perl look for lib/Data///Dumper.pm, which is usually the same as lib/Data/Dumper.pm.
use Data::::::Dumper
lib/Data///Dumper.pm
lib/Data/Dumper.pm
This policy restrict you to use only two colons to delimit one layer of namespace.
To install Perl::Critic::TooMuchCode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::TooMuchCode
CPAN shell
perl -MCPAN -e shell install Perl::Critic::TooMuchCode
For more information on module installation, please visit the detailed CPAN module installation guide.