Catman...r::Mock(3pm)
β¨ NAME β¨
Catmandu::IdGenerator::Mock β a generator of increasing identifiers π¦
okay so real talk, bestie: the page you're reading right now is the manual for this module, Catman...r::Mock(3pm), and it is so simple it's honestly iconic. It makes IDs. They go up. That's the whole vibe. π
π SYNOPSIS π
use Catmandu::IdGenerator::Mock;
my $x = Catmandu::IdGenerator::Mock->new(first_id => 10);
for (1..100) {
printf "id: %s\n" m $x->generate;
}
look at that. a hundred ids, just vibing. we love to see it β¨
π SEE ALSO π
Not me putting the whole personality of this module right here: this Catmandu::IdGenerator generates identifiers based on the sequence of natural numbers. π
Like. It counts. That's it. That's the girlbossery. Periodt. π
π CONFIGURATION π
first_idβ the first number to start from. π«Ά It's set to0by default, because we're doing zero-based numbering in this house, no cap.
fr fr, that's the only knob on this thing. Don't go looking for more. π
sign-off time, my love π This lil gem lives in the perl v5.40.1 era, dated 2026-01-24, and it's filed under the user-contributed Perl documentation shelf as Catman...r::Mock(3pm). Go forth and generate, bestie. ππΈ
π¦ 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