1docs::api::APR::UUID(3)User Contributed Perl Documentatiodnocs::api::APR::UUID(3)
2
3
4

NAME

6       APR::UUID - Perl API for manipulating APR UUIDs
7

Synopsis

9         use APR::UUID ();
10
11         # get a random UUID and format it as a string
12         my $uuid = APR::UUID->new->format;
13         # $uuid = e.g. 'd48889bb-d11d-b211-8567-ec81968c93c6';
14
15         # same as the object returned by APR::UUID->new
16         my $uuid_parsed = APR::UUID->parse($uuid);
17

Description

19       "APR::UUID" is used to get and manipulate random UUIDs.
20
21       It allows you to "create" random UUIDs, which when "formatted" returns
22       a string like:
23
24         'd48889bb-d11d-b211-8567-ec81968c93c6';
25
26       which can be parsed back into the "APR::UUID" object with "parse()".
27

API

29       "APR::UUID" provides the following functions and/or methods:
30
31   "format"
32       Convert an "APR::UUID object" object into a string presentation:
33
34         my $uuid_str = $uuid->format;
35
36       obj: $uuid ( "APR::UUID object" )
37       ret: $uuid_str
38           returns a string representation of the object (.e.g
39           'd48889bb-d11d-b211-8567-ec81968c93c6').
40
41       since: 2.0.00
42
43   "new"
44       Create a "APR::UUID object" using the random engine:
45
46         my $uuid = APR::UUID->new;
47
48       class: "APR::UUID" ( "APR::UUID class" )
49       ret: $uuid ( "APR::UUID object" )
50       since: 2.0.00
51
52   "DESTROY"
53         $uuid->DESTROY;
54
55       obj: "APR::UUID" ( "APR::UUID object" )
56       ret: no return value
57       since: 2.0.00
58
59       Do not call this method, it's designed to be only called by Perl when
60       the variable goes out of scope. If you call it yourself you will get a
61       segfault when perl will call DESTROY on its own.
62
63   "parse"
64       Convert a UUID string into an "APR::UUID object" object:
65
66         $uuid = APR::UUID->parse($uuid_str)
67
68       arg1: $uuid_str (string)
69           UUID string (.e.g 'd48889bb-d11d-b211-8567-ec81968c93c6')
70
71       ret: $uuid ( "APR::UUID object" )
72           The new object.
73
74       since: 2.0.00
75

See Also

77       mod_perl 2.0 documentation.
78
80       mod_perl 2.0 and its core modules are copyrighted under The Apache
81       Software License, Version 2.0.
82

Authors

84       The mod_perl development team and numerous contributors.
85
86
87
88perl v5.30.1                      2020-01-29           docs::api::APR::UUID(3)
Impressum