logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Perl::Critic::Policy::Variables::ProhibitPerl4PackageNames - Use double colon (::) to separate package

Affiliation

       This Policy is part of the core Perl::Critic distribution.

Author

       Elliot Shank "<perl@galumph.com>"

Configuration

       This Policy is not configurable except for the standard options.

Description

       Perl 5 kept single quotes ("'") as package component separators in order to remain backward compatible
       with prior "perl"s, but advocated using double colon ("::") instead.  In the more than a decade since
       Perl 5, double colons have been overwhelmingly adopted and most people are not even aware that the single
       quote can be used in this manner.  So, unless you're trying to obfuscate your code, don't use them.

           package Foo::Bar::Baz;    #ok
           package Foo'Bar'Baz;      #not ok

Name

       Perl::Critic::Policy::Variables::ProhibitPerl4PackageNames - Use double colon (::) to separate package
       name components instead of single quotes (').

See Also

       perlmod

See Also