docs::a...R::UUID(3)

πŸ“¦ version 2.0.13, in nixos 26.05, nixpkgs unstable

πŸ’– 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.

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