Catman...r::Mock(3pm)

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

✨ 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 to 0 by 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