MooseX...le::Run(3pm)
π MooseX::Runnable::Run π
okay bestie, so this is a page from the User Contributed Perl Documentation, and it's all about MooseX::Runnable::Run β the little helper that lets you yeet a MooseX::Runnable class straight into being a whole actual application. yes, like a real one. with exit codes and everything. slay.
β¨ NAME β¨
MooseX::Runnable::Run β run a MooseX::Runnable class as an application πβοΈπ¨
πΈ VERSION πΈ
version 0.10
π SYNOPSIS π
step one, babes: write an app π«Ά
package MyApp;
use Moose; with 'MooseX::Runnable';
sub run { say 'Hello, world.'; return 0 } # (UNIX exit code)
then write a wrapper script called myapp.pl. if you want the sugar version (and honestly, who doesn't) it's giving:
#!/usr/bin/env perl
use MooseX::Runnable::Run 'MyApp';
or without the sugar, if you're feeling spicy:
#!/usr/bin/env perl
use MooseX::Runnable::Run;
run_application 'MyApp', @ARGV;
then boom β run your app π₯
$ ./myapp.pl
Hello, world.
$ echo $?
0
no cap, it just works like that.
π DESCRIPTION π
so this is a utility module (a lil helper, a sidekick, a robin to your batman) whose whole job is running a MooseX::Runnable class with MooseX::Runnable::Invocation. that's it. that's the vibe. it's the glue, it's the middle-manager of your Moose app, and it eats. π
π SEE ALSO π
mx-runβ a whole script that will run your MooseX::Runnable apps for you, saving you valuable seconds. and bestie, seconds add up. that's main character energy right there. πMooseX::Runnableβ the parent vibe, the whole reason we're here.
π SUPPORT π
got bugs? don't suffer in silence, tell someone π
- Bugs may be submitted through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Runnable> (or email
bug-MooseX-Runnable@rt.cpan.org). - There's also a mailing list for users of this distribution, over at <http://lists.perl.org/list/moose.html>.
- and there's an irc channel too, for the real ones β
#mooseonirc.perl.org(<irc://irc.perl.org/#moose>). come hang, iykyk π
π AUTHOR π
Jonathan Rockway <jrockway@cpan.org>
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2009 by Jonathan Rockway.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt. π
and that's the whole page bestie, no notes, we ate π
<div align="center">perl v5.36.0 Β· 2022-12-11 Β· MooseX...le::Run(3pm) β¨ go run your app, you got this π¦</div>
π¦ where this page comes from
- debian bookworm: libmoosex-runnable-perl 0.10-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-runnable-perl 0.10-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-runnable-perl 0.10-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libmoosex-runnable-perl 0.10-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms