line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Catmandu::Sane; |
3
|
21
|
|
|
21
|
|
95829
|
|
|
21
|
|
|
|
|
51
|
|
|
21
|
|
|
|
|
120
|
|
4
|
|
|
|
|
|
|
our $VERSION = '1.2019'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use UUID::Tiny qw(:std); |
7
|
21
|
|
|
21
|
|
9974
|
use Moo; |
|
21
|
|
|
|
|
224195
|
|
|
21
|
|
|
|
|
3611
|
|
8
|
21
|
|
|
21
|
|
158
|
use namespace::clean; |
|
21
|
|
|
|
|
43
|
|
|
21
|
|
|
|
|
156
|
|
9
|
21
|
|
|
21
|
|
7596
|
|
|
21
|
|
|
|
|
47
|
|
|
21
|
|
|
|
|
131
|
|
10
|
|
|
|
|
|
|
with 'Catmandu::IdGenerator'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
create_uuid_as_string(UUID_V1); |
13
|
|
|
|
|
|
|
} |
14
|
108
|
|
|
108
|
0
|
10471
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Catmandu::IdGenerator::UUID - Generator of UUID identifiers |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
use Catmandu::IdGenerator::UUID; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
my $x = Catmandu::IdGenerator::UUID->new; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
for (1..100) { |
31
|
|
|
|
|
|
|
printf "id: %s\n" , $x->generate; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 DESCRIPTION |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This L<Catmandu::IdGenerator> generates identifiers based on the Universally |
37
|
|
|
|
|
|
|
Unique Identifier (UUID) v1 standard. A UUID string is a 128 bit number |
38
|
|
|
|
|
|
|
represented by lowercase hexadecimal digits such as |
39
|
|
|
|
|
|
|
C<de305d54-75b4-431b-adb2-eb6b9e546014>. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |