Perl::Critic::Policy::ValuesAndExpressions::ProhibitAccessOfPrivateData
This policy is part of Perl::Critic::Nits.
This document describes Perl::Critic::Policy::ValuesAndExpressions::ProhibitAccessOfPrivateData version 1.0.0
Requires that modules and scripts do not break encapsulation by directly accessing the contents of hash-based objects.
Accessing an objects data directly breaks encapsulation and should be avoided. Example: $object->{ some_key }.
Care should be taken to only access private data via the getter and setter methods provided by the class.
Stadard for a Perl::Critic::Policy.
None.
This policy has no configuration options beyond the standard ones.
Perl::Critic
None reported.
No bugs have been reported.
False positives may be encountered if, internal to a module, the code does not use $self, $class, or $package to refer to the object it represents.
Please report any bugs or feature requests to "bug-perl-critic-nits AT rt DOT cpan DOT org", or through the web interface at <http://rt.cpan.org>.
Kent Cowgill, "<kent AT c2group DOT net>"
Copyright (c) 2007, Kent Cowgill "<kent AT c2group DOT net>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.