MooseX...::Fast(3pm)
π MooseX...::Fast(3pm) β the β¨adoptβ¨ era
okay bestie, gather round, because this one is a little chaotic in the best way π«Ά. This page lives in the User Contributed Perl Documentation and it goes by MooseX...::Fast(3pm) (yes the name is literally truncated with dots, it's giving "I ran out of room in the header", iconic honestly π).
β¨ NAME β¨
MooseX::Adopt::Class::Accessor::Fast β Hijack Class::Accessor::Fast in %INC; π
Like. That's the whole job description. It hijacks. On purpose. Consensually. We'll get to that.
π¦ SYNOPSYS π¦
(keeping the original spelling bestie, no notes, it's part of the lore)
use MooseX::Adopt::Class::Accessor::Fast;
use CAF::Using::Module;
#that's it! JustWorks
not me reading #that's it! JustWorks and genuinely tearing up π the confidence. the brevity. the audacity. periodt.
πΈ DESCRIPTION πΈ
so here's the tea β. This module attempts to hijack Class::Accessor::Fast in %INC and swap it out for MooseX::Emulate::Class::Accessor::Fast. That's the whole bit. It reaches into %INC, grabs the entry for Class::Accessor::Fast, and goes "no bestie, we're someone else now" π§β¨.
β οΈ THE IMPORTANT PART, DO NOT SKIP THIS: make sure it is loaded before the classes you have that use Class::Accessor::Fast. Order matters, fr fr. If your CAF-using classes load first, the hijack has nothing to hijack and you're just standing there like π.
It is meant as a tool to help you migrate your project from Class::Accessor::Fast, to MooseX::Emulate::Class::Accessor::Fast and ultimately, to Moose. π
So like: it's a glow-up pipeline. Step one, pretend. Step two, the emulation layer. Step three, full Moose main character energy. Slay π.
π SEE ALSO π
Mooseβ the final form, the endgame, the momentClass::Accessor::Fastβ the ex, the thing we're moving on fromMooseX::Emulate::Class::Accessor::Fastβ the situationship in the middle, the bridge, lowkey the hero of this story
π AUTHORS π
- Matt S Trout
- Guillermo Roditi (groditi)
<groditi@cpan.org>
absolute legends, no cap π«‘
π LICENSE π
You may distribute this code under the same terms as Perl itself.
read it, know it, respect it bestie π
and that's the whole page!! π¦β¨ documented by perl v5.36.0, dated 2022-12-12, which is basically ancient history in internet years but the vibes? still immaculate. mwah π π
π¦ where this page comes from
- debian bookworm: libmoosex-emulate-class-accessor-fast-perl 0.009032-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-emulate-class-accessor-fast-perl 0.009032-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-emulate-class-accessor-fast-perl 0.009032-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-emulate-class-accessor-fast-perl 0.009032-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-emulate-class-accessor-fast-perl 0.009032-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms