libapa...R::UUID(3pm)
β¨ NAME β¨
APR::UUID β the Perl API for manipulating APR UUIDs π¦ (yes bestie, that manual name is libapa...R::UUID(3pm), we keep it cute and abbreviated around here)
π 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
So APR::UUID is literally just here to get you random UUIDs and let you play with them. That's the whole job. Iconic behavior, no notes. β¨
It lets you "create" random UUIDs, and when you "format" one it hands you back a string like:
'd48889bb-d11d-b211-8567-ec81968c93c6'
and that same string can be parsed right back into the APR::UUID object with parse(). Round trip, slay. π
π 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::UUIDobject ) - 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::UUIDclass ) - ret:
$uuid(APR::UUIDobject ) - since:
2.0.00
π DESTROY
$uuid->DESTROY;
- obj:
APR::UUID(APR::UUIDobject ) - ret: no return value
- since:
2.0.00
BESTIE DO NOT DO THIS. π¨ 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. That's not a vibe check you want to fail. Leave it alone fr fr. π
π§ 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::UUIDobject ) β the new object. - since:
2.0.00
πΈ See Also
mod_perl 2.0 documentation. (go read it, it's giving lore) π
β 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. Legends, every single one. π
Okay that's the whole page cutie π β this was perl v5.42.3, dated 2026-08-20, straight out of libapa...R::UUID(3pm). Go make some random UUIDs, you got this. Periodt. β¨ππ¦
π¦ where this page comes from
- ubuntu stonking: libapache2-mod-perl2 2.0.13-2build3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms