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 πŸ”₯

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