Perl::...ateVars(3pm)
okay bestie, welcome to the User Contributed Perl Documentation page for Perl::Critic::Policy::Variables::ProtectPrivateVars(3pm) π
β¨ This one is short but iconic.
πΈ NAME πΈ
Perl::Critic::Policy::Variables::ProtectPrivateVars β prevent access to private vars in other packages. No cap. π«π
π AFFILIATION π
This Policy is part of the core Perl::Critic distribution. She's in the core squad, bestie. π
π¦ DESCRIPTION π¦
So here's the vibe: by convention, Perl authors (like authors in many other languages) indicate private methods and variables by inserting a leading underscore before the identifier. _like_this, iykyk. This policy catches attempts to access private variables from outside the package itself. That's the whole main character move. β¨
π CONFIGURATION π
This Policy is not configurable except for the standard options. That's it. No extra knobs, no secret menu. π
π HISTORY π
This policy is inspired by a similar test in B::Lint. Cute lore, fr fr. π§
π SEE ALSO π
Perl::Critic::Policy::Subroutines::ProtectPrivateSubs
π AUTHOR π
Chris Dolan <cdolan@cpan.org> π«Ά
π₯ COPYRIGHT π₯
Copyright (c) 2006-2011 Chris Dolan.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.
This page came from perl v5.42.0 and is dated 2024-10-23 β byeee, bestie π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Perl-Critic 1.156.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms