Perl::Critic::Policy::Miscellanea::ProhibitTies - Do not use C.


Perl-Critic documentation  | view source Contained in the Perl-Critic distribution.

Index


NAME

Top

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

AFFILIATION

Top

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

DESCRIPTION

Top

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.

CONFIGURATION

Top

This Policy is not configurable except for the standard options.

AUTHOR

Top

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

COPYRIGHT

Top


Perl-Critic documentation  | view source Contained in the Perl-Critic distribution.