Mojo::HelloWorld(3)
π Mojo::HelloWorld(3) β bestie's guide to the littlest Mojolicious app π
okay so picture this: a Perl module so tiny, so iconic, so absolutely doing-the-most-with-very-little. That's Mojo::HelloWorld, from the User Contributed Perl Documentation, and honestly? She's the moment. β¨
πΈ NAME πΈ
Mojo::HelloWorld β Hello World! π
That's it. That's the name. She said what she said.
π¦ SYNOPSIS π¦
Here's the whole vibe, literally three lines and you're live:
use Mojo::HelloWorld;
my $hello = Mojo::HelloWorld->new;
$hello->start;
Use the module, make a new one, start it. Slay. That's the entire ritual, no cap. π₯
π DESCRIPTION π
Mojo::HelloWorld is the default Mojolicious application, and it's used mostly for testing. π§ͺ
Like, she's not out here running production empires. She's the demo. The vibe check. The "does this thing even boot" girlie. And she does it flawlessly, periodt.
π ATTRIBUTES π
Mojo::HelloWorld inherits all attributes from Mojolicious. π
No new ones, no secret extras, no hidden lore β she just takes everything from her parent and makes it work for her. Main character energy fr fr.
π METHODS π
Mojo::HelloWorld inherits all methods from Mojolicious and implements the following new ones. Yes, "new ones" β plural setup, singular delivery, we love a minimalist queen. π
β startup β
$hello->startup;
This is the one method she adds, and it's iconic: it creates a catch-all route that renders a text message. π«Ά
Catch-all means she catches everything. Every path. Every request. No crumbs. And renders a text message back at you. Simple, effective, iconic. π
π SEE ALSO π
Go check out her friends, they're all equally obsessed with you:
MojoliciousMojolicious::Guides- <https://mojolicious.org>
π and that's the whole page, bestie β go build something cute π
Signed off with love from perl v5.42.0, dated 2026-07-15 β same energy, same source, no notes. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious 9.480.0-bp160.2.1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms