MooX::...oxyArgs(3pm)
π MooX::MethodProxyArgs π
(that's the page for MooX::...oxyArgs in the 3pm manual, bestie β User Contributed Perl Documentation, we love a community moment)
β¨ NAME β¨
MooX::MethodProxyArgs β Invoke code to populate static arguments. fr fr, that's the whole vibe.
π SYNOPSIS π
okay so here's the whole thing in action, look at her go:
package Foo;
use Moo;
with 'MooX::MethodProxyArgs';
has bar => (
is => 'ro',
);
package main;
sub divide {
my ($class, $number, $divisor) = @_;
return $number / $divisor;
}
my $foo = Foo->new( bar => ['$proxy', 'main', 'divide', 10, 2 ] );
print $foo->bar(); # 5
like. she said 5. iconic. π₯
π¦ DESCRIPTION π¦
So what's tea? This module munges the class's input arguments by replacing any method proxy values it finds with the result of calling the methods. that's it, that's the job. π
It does all of this using Data::MethodProxy. So if you wanna actually understand how method proxies work under the hood, go read that module, because that's where the lore lives. π
πΈ SEE ALSO πΈ
your little reading list, go off:
MooX::BuildArgsMooX::BuildArgsHooksMooX::RebuildMooX::SingleArg
π«Ά SUPPORT π«Ά
See "SUPPORT" in MooX::BuildArgs. they got you covered, no cap. β¨
π AUTHORS π
See "AUTHORS" in MooX::BuildArgs. give them their flowers. πΈ
π LICENSE π
See "LICENSE" in MooX::BuildArgs. read it, respect it, that's the law. π
and that's the whole page babes π this cutie was served up by perl v5.30.3 on 2020-09-12, and yeah the manual name is literally MooX::...oxyArgs(3pm) because even perl knows some names are too long to fit π slay, go write some proxies bestie π¦β¨
π¦ where this page comes from
- debian bookworm: libmoox-buildargs-perl 0.08-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmoox-buildargs-perl 0.08-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