Mu::Tiny(3pm)
π Mu::Tiny(3pm) β the user-contributed Perl docs bestie β¨
okay so this is Mu::Tiny, from the User Contributed Perl Documentation collection, and it is unhinged in the best way. come sit with me. π«Ά
π NAME
Mu::Tiny β NAE KING! NAE QUIN! NAE CAPTAIN! WE WILLNAE BE FOOLED AGAIN!
πΈ SYNOPSIS
BEGIN {
package Feegle;
use Mu::Tiny;
ro 'name';
lazy plan => sub { 'PLN' };
}
my $rob = Feegle->new(name => 'Rob Anybody'); # name is required
say $rob->plan; # outputs 'PLN'
π¦ DESCRIPTION
bestie. this is the aaaabsoluuuute baaaaare minimumimumimum subset o' Mu, for those o' ye who value yer independence over yer sanity. π
it doesnae trouble wi' anythin' but the read-onlies, because for tis a terrible thing to make a feegle try t' write. the audacity. the disrespect. π
π METHODS
β¨ new
my $new = Feegle->new(%attrs|\%attrs);
the new method be inherited from Mu::Tiny::Object like a shiny thing or the duties o' a Kelda. π
ye may hand it a hash, or if ye already made yer own hash o' things, a reference to the one so pre-prepared. either way works, we're not picky. π
An ye forget any o' the attrs declared as ro, then new will go waily waily waily π and croak with a list of all that ye missed. it WILL tell on you. fr fr.
π EXPORTS
π ro
ro 'attr';
An ro attr be required and read only, and knows nothin' but its own name. no secrets, no side quests, just vibes. β¨
π§ lazy
lazy 'attr' => sub { <build default value> };
A lazy attr be read only but not required, an' if ye make us, we'll take a guess at what ye wanted β but only when we must. lowkey considerate of us ngl. π«Ά
If'n ye be slightly less lazy than us, then subclass and override yan _build_attr method t' change tha guess. main character energy, go off. π
π WHUT
Dinnae fash yersel', Hamish, you prob'ly wanted Mu anyway.
π APOLOGIES
... to Terry Pratchett, Mithaldu, and probably everybody else as well. we're so sorry bestie. π
β AUTHOR
mst - Matt S. Trout (cpan:MSTROUT) <mst@shadowcat.co.uk>
π CONTRIBUTORS
None yet - maybe this software is perfect! (ahahahahahahahahaha) π
π COPYRIGHT
Copyright (c) 2020 the Mu::Tiny "AUTHOR" and "CONTRIBUTORS" as listed above.
πΈ LICENSE
This library is free software and may be distributed under the same terms as perl itself. slay.
and that's the whole thing, bestie β this lil page came out with perl v5.36.0, dated 2022-10-13, and it's literally wearing Mu::Tiny(3pm) as its whole name and title. no cap. periodt. π
β¨
π¦ where this page comes from
- ubuntu noble: libmu-tiny-perl 0.000002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmu-tiny-perl 0.000002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmu-tiny-perl 0.000002-3 Β· 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