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::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 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::UUID object ) β€” the new object.
  • since: 2.0.00

🌸 See Also

mod_perl 2.0 documentation. (go read it, it's giving lore) πŸ“š


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