Perl::Critic::Policy::TooMuchCode::ProhibitExcessiveColons(3pm)

Perl::Critic::Policy::TooMuchCode::ProhibitExcessiveColons3pm

Finds '::::::::' in module names.

Overview

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".

This policy restrict you to use only two colons to delimit one layer of namespace.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From libperl-critic-toomuchcode-perl 0.19-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.