Catman...leOnce(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– Catmandu::IterableOnce πŸ’–

okay so bestie, welcome to Catmandu::IterableOnce β€” the Perl manual page for this lil role, straight out of the User Contributed Perl Documentation corner of the world. it's giving "one and done" energy and honestly? iconic. πŸ¦‹


✨ NAME ✨

Catmandu::IterableOnce β€” the role for iterable classes that can only iterate once. yeah. one time. that's the whole vibe. πŸ™ˆ


🌸 SYNOPSIS 🌸

here's the whole look, copy it character-for-character because bestie we do not freestyle code:

package MySingleUseIterator;
use Moo;
with 'Catmandu::Iterable';
with 'Catmandu::Iterableonce';

sub  generator {
    # ...
}

so you make a package, you pull in Moo, you compose in Catmandu::Iterable, then you compose in Catmandu::Iterableonce, and then you define your own generator sub β€” the # ... is where your actual logic goes, no cap. πŸ’…

heads up bestie: yes, it really is spelled Catmandu::Iterableonce in that second with line. copy it exactly as it appears. don't "fix" it, don't get cute with the capital letters, just type it like the page says. ✨

🫢 SEE ALSO 🫢

  • Catmandu::Iterable β€” go read that one too, it's the whole reason this role exists. 🌈

and that's the page, babe. no options, no flags, no environment variables, no exit statuses β€” just a tiny role doing its one-time thing. main character energy, honestly. πŸ‘‘

kisses, this was rendered from perl v5.40.1, dated 2026-01-24. go iterate once and make it count. πŸŽ€πŸ’œ

πŸ“¦ where this page comes from