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

See Also

81       mod_perl 2.0 documentation.
82
84       mod_perl 2.0 and its core modules are copyrighted under The Apache
85       Software License, Version 2.0.
86

Authors

88       The mod_perl development team and numerous contributors.
89
90
91
92perl v5.8.8                       2006-11-19           docs::api::APR::UUID(3)
Impressum