Catmandu::IdGenerator::Mock - Generator of increasing identifiers
Contents
Configuration
first_id
First number to start from. Set to 0 by default (zero-based numbering).
perl v5.40.0 2025-01-17 Catmandu::IdGenerator::Mock(3pm)
Name
Catmandu::IdGenerator::Mock - Generator of increasing identifiers
See Also
This Catmandu::IdGenerator generates identifiers based on the sequence of natural numbers.
Synopsis
use Catmandu::IdGenerator::Mock;
my $x = Catmandu::IdGenerator::Mock->new(first_id => 10);
for (1..100) {
printf "id: %s\n" m $x->generate;
}
