Mojo::S...d::Poll(3)
π Mojo::Server::Morbo::Backend::Poll(3) π
okay bestie so this page is from the User Contributed Perl Documentation crew, and it's about Mojo::Server::Morbo::Backend::Poll β literally the default backend for Morbo, no cap β¨
πΈ NAME πΈ
Mojo::Server::Morbo::Backend::Poll β the Morbo default backend π
π¦ SYNOPSIS π¦
here's the vibe, copy-paste ready:
use Mojo::Server::Morbo::Backend::Poll;
my $backend = Mojo::Server::Morbo::Backend::Poll->new;
if (my $files = $backend->modified_files) {
...
}
like, you make a backend, you ask it modified_files, and if it hands you back some files you do stuff. iconic behavior honestly π
β¨ DESCRIPTION β¨
Mojo::Server::Morbo::Backend::Poll is the default backend for Mojo::Server::Morbo. that's it, that's the whole job, and it slays at it π
π ATTRIBUTES π
Mojo::Server::Morbo::Backend::Poll inherits all attributes from Mojo::Server::Morbo::Backend. everything. the whole inheritance moment, we love a nepo baby π«Ά
π§ METHODS π§
Mojo::Server::Morbo::Backend::Poll inherits all methods from Mojo::Server::Morbo::Backend and implements the following new ones. new ones! main character energy fr fr β
π modified_files
my $files = $backend->modified_files;
this one checks the file size and mtime to figure out which files have changed. and yes bestie, it is not particularly efficient π but it is very portable β so like, it traded speed for working literally everywhere. a fair trade honestly π
# All files that have been modified
say for @{$backend->modified_files};
that example is giving "loop through everything that changed and just say it out loud" π
lowkey important: the manpage itself says this is "not particularly efficient" β that's not me being dramatic, that's the actual documented tradeoff for portability. so don't come for me π«Ά
π₯ SEE ALSO π₯
MojoliciousMojolicious::Guides- <https://mojolicious.org>
go read those, iykyk π¦
and that's the whole page, bestie!! π this gem was served up by perl v5.42.0, dated 2026-07-15 β a whole little time capsule from the User Contributed Perl Documentation squad π mwah, go poll some files β¨π
π¦ 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