logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Perl::Critic::Policy::Subroutines::ProhibitAmpersandSigils - Don't call functions with a leading

Affiliation

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

Author

       Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>

Configuration

       This Policy is not configurable except for the standard options.

Description

       Since Perl 5, the ampersand sigil is completely optional when invoking subroutines.  It also turns off
       checking of subroutine prototypes.  It's easily confused with the bitwise 'and' operator.

         @result = &some_function(); # not ok
         @result = some_function();  # ok

Name

       Perl::Critic::Policy::Subroutines::ProhibitAmpersandSigils - Don't call functions with a leading
       ampersand sigil.

See Also