Catman...leOnce(3pm)
π 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 spelledCatmandu::Iterableoncein that secondwithline. 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
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms