Perl::...bitTies(3pm)
β¨ NAME β¨
So this page is from the Perl::...bitTies(3pm) corner of the User Contributed Perl Documentation universe, and the whole vibe is Perl::Critic::Policy::Miscellanea::ProhibitTies β like, the policy that says do not use tie. That's it. That's the policy. π
π AFFILIATION π
Heads up bestie: this Policy ships as part of the core Perl::Critic distribution. So it's already in the group chat, no invite needed. π«Ά
πΈ DESCRIPTION πΈ
okay so Conway β yes, that Conway β discourages using tie to bind Perl primitive variables to user-defined objects. Lowkey a hard no from the man himself. π
And honestly? The reasoning is giving very much valid. Unless the tie happens close to where the object is used, other developers probably won't know that the variable has special behavior. Like, imagine a normal-looking %hash that's secretly doing a whole extra thing. Nobody knows. Nobody was told. Chaos. π
So if you want to encapsulate complex behavior, just use a proper object or subroutine. Periodt. That's the whole message, and it's iconic.
π¦ CONFIGURATION π¦
This Policy is not configurable except for the standard options. That's it. No extra knobs, no secret switches, no fun little dials to turn. It is what it is, and what it is is slaying in exactly one way. β¨
π AUTHOR π
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com> β yes, the real one, credited and everything. π«‘
π COPYRIGHT π
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved.
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. (ngl, always read the license bestie, it's literally right there. π)
and that's the page!! mwah π
file's footer vibes: perl v5.42.0, dated 2024-10-23 β go off, and stan Perl::...bitTies(3pm) forever π§ββοΈ
π¦ 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