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::Miscellanea::ProhibitTies - Do not use "tie".

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

       Conway discourages using "tie" to bind Perl primitive variables to user-defined objects.  Unless the tie
       is done close to where the object is used, other developers probably won't know that the variable has
       special behavior.  If you want to encapsulate complex behavior, just use a proper object or subroutine.

Name

       Perl::Critic::Policy::Miscellanea::ProhibitTies - Do not use "tie".

See Also