Perl::Critic::Policy::Variables::ProtectPrivateVars - Prevent access to private vars in other packages.


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

Index


NAME

Top

Perl::Critic::Policy::Variables::ProtectPrivateVars - Prevent access to private vars in other packages.

AFFILIATION

Top

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

DESCRIPTION

Top

By convention Perl authors (like authors in many other languages) indicate private methods and variables by inserting a leading underscore before the identifier. This policy catches attempts to access private variables from outside the package itself.

CONFIGURATION

Top

This Policy is not configurable except for the standard options.

HISTORY

Top

This policy is inspired by a similar test in B::Lint (B::Lint)

SEE ALSO

Top

Perl::Critic::Policy::Subroutines::ProtectPrivateSubs

AUTHOR

Top

Chris Dolan <cdolan@cpan.org>

COPYRIGHT

Top


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