docs::a...R::UUID(3)
π APR::UUID β docs::a...R::UUID(3) π
okay so bestie, this is the manual page for docs::a...R::UUID(3). Itβs literally the Perl API for manipulating APR UUIDs, and weβre gonna get through it together π
β¨
πΈ NAME πΈ
APR::UUID β Perl API for manipulating APR UUIDs.
π Synopsis π
use APR::UUID ();
# get a random UUID and format it as a string
my $uuid = APR::UUID->new->format;
# $uuid = e.g. 'd48889bb-d11d-b211-8567-ec81968c93c6';
# same as the object returned by APR::UUID->new
my $uuid_parsed = APR::UUID->parse($uuid);
π¦ Description π¦
APR::UUID is used to get and manipulate random UUIDs.
It lets you create random UUIDs, and when theyβre formatted you get a string like:
'd48889bb-d11d-b211-8567-ec81968c93c6';
which can be parsed back into the APR::UUID object with parse(). Iconic behavior, honestly π«Ά
π₯ API π₯
APR::UUID provides the following functions and/or methods:
β¨ format β¨
Convert an APR::UUID object object into a string presentation:
my $uuid_str = $uuid->format;
- obj:
$uuid(APR::UUID object) - ret:
$uuid_strβ returns a string representation of the object (e.g.'d48889bb-d11d-b211-8567-ec81968c93c6'). - since:
2.0.00
π new π
Create a APR::UUID object using the random engine:
my $uuid = APR::UUID->new;
- class:
APR::UUID(APR::UUID class) - ret:
$uuid(APR::UUID object) - since:
2.0.00
π DESTROY π
$uuid->DESTROY;
- obj:
APR::UUID(APR::UUID object) - ret: no return value
- since:
2.0.00
π¨ bestie, do not call this method. Itβs designed to be only called by Perl when the variable goes out of scope. If you call it yourself you will get a segfault when perl will call DESTROY on its own. Like, respect the lifecycle, okay? π
π§ parse π§
Convert a UUID string into an APR::UUID object object:
$uuid = APR::UUID->parse($uuid_str)
- arg1:
$uuid_str(string) β UUID string (e.g.'d48889bb-d11d-b211-8567-ec81968c93c6') - ret:
$uuid(APR::UUID object) β the new object. - since:
2.0.00
π See Also π
mod_perl 2.0 documentation.
Β©οΈ Copyright Β©οΈ
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
π Authors π
The mod_perl development team and numerous contributors.
π okay thatβs the whole page, bestie. cute little sign-off: perl v5.42.3 Β· 2023-10-21 Β· docs::a...R::UUID(3) β periodt. π
π¦ where this page comes from
- nixos 26.05: mod_perl 2.0.13
- nixpkgs unstable: mod_perl 2.0.13
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms