Class:...e::Fast(3pm)
β¨ NAME β¨
Class::Accessor::Lvalue::Fast β bestie, this is the module that makes simplified Lvalue accessors π
(and yeah, the manual page lives in section 3pm, the Perl module pages, in case you were wondering where we at π)
πΈ SYNOPSIS πΈ
okay so here's the whole vibe, fr fr:
package Foo;
use base qw( Class::Accessor::Lvalue::Fast );
__PACKAGE__->mk_accessors(qw( bar ))
my $foo = Foo->new;
$foo->bar = 42;
print $foo->bar; # prints 42
look at that. $foo->bar = 42; β assigning straight into an accessor. no setter call, no ->bar(42), just the assignment operator doing its little thing. iconic behavior, honestly π«Ά
π¦ DESCRIPTION π¦
So the way this works is: this module subclasses Class::Accessor::Fast, and the whole reason it exists is to hand you lvalue accessors. That's it, that's the plot π
(If you're like "wait, subclassess" β yeah the original says subclassess, we're not touching that, it's part of the lore π)
π AUTHOR π
Richard Clamp <richardc@unixbeard.net> β the main character who wrote this π«‘
π COPYRIGHT π
Copyright (C) 2003 Richard Clamp. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, permissive licensing, we love to see it β
π SEE ALSO π
Class::Accessor::Fastβ the parent, the blueprint, the origin storyWantβ the other one, go look at it too
okay bestie that's the whole page!! this one's from perl v5.34.0, dated 2022-06-10, and it's part of the User Contributed Perl Documentation for section 3pm π go forth and lvalue, you've got this π§β¨
π¦ where this page comes from
- debian bookworm: libclass-accessor-lvalue-perl 0.11-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libclass-accessor-lvalue-perl 0.11-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libclass-accessor-lvalue-perl 0.11-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libclass-accessor-lvalue-perl 0.11-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libclass-accessor-lvalue-perl 0.11-5 Β· 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