MooseX...etArgs(3pm)
π MooseX::POE::SweetArgs π
okay bestie, so this is MooseX::POE::SweetArgs β it's sugar around MooseX::POE event arguments. that's literally the whole name. we're starting strong. β¨
it lives in the User Contributed Perl Documentation, so it's one of those 3pm pages, iykyk.
πΈ VERSION πΈ
this is version 0.215. periodt. no cap.
β¨ SYNOPSIS β¨
okay so here's the vibe, look at this:
package Thing;
use MooseX::POE::SweetArgs;
# declare events like usual
event on_success => sub {
# unpack args like a Perl sub, not a POE event
my ($self, $foo, $bar) = @_;
...
POE::Kernel->yield('foo');
...
};
so you declare events like usual β event keyword, sub, all of it β and then you unpack your args like a normal Perl sub. not like a POE event. that's the whole glow-up. π¦
π DESCRIPTION π
okay so normally when you're using MooseX::POE, subs declared as events have to use POE macros to unpack @_, like this:
my ($self, $foo, $bar) = @_[OBJECT, ARG0..$#_];
the way that @_[OBJECT, ARG0..$#_] is giving "cryptic incantation"β¦ bestie, no. π
using MooseX::POE::SweetArgs as a metaclass lets you skip all that and just use @_ like a normal person:
my ($self, $foo, $bar) = @_;
iconic. obsessed. and since the POE kernel is a singleton, you can access it using class methods, exactly like the synopsis shows you. POE::Kernel->yield('foo') β boom. done.
and in all other respects? this behaves exactly like MooseX::POE. same energy, cuter args. π
π AUTHORS π
the main characters responsible for this blessing:
- Chris Prather
<chris@prather.org> - Ash Berlin
<ash@cpan.org> - Chris Williams
<chris@bingosnet.co.uk> - Yuval (nothingmuch) Kogman
- Torsten Raudssus
<torsten@raudssus.de><http://www.raudssus.de/>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010 by Chris Prather, Ash Berlin, Chris Williams, Yuval Kogman, Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie πβ¨ this one was generated against perl v5.26.1, and the page itself is dated 2018-03-30. shoutout to the MooseX...etArgs(3pm) header and that footer holding it down at the bottom. mwah. π
π
π¦ where this page comes from
- debian bookworm: libmoosex-poe-perl 0.215-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-poe-perl 0.215-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmoosex-poe-perl 0.215-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-poe-perl 0.215-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