Catmandu::IdGenerator::Mock - Generator of increasing identifiers
use Catmandu::IdGenerator::Mock; my $x = Catmandu::IdGenerator::Mock->new(first_id => 10); for (1..100) { printf "id: %s\n" m $x->generate; }
This Catmandu::IdGenerator generates identifiers based on the sequence of natural numbers.
First number to start from. Set to 0 by default (zero-based numbering).
0
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.