Catman...x::uuid(3pm)

πŸ¦‹ Catmandu::Fix::uuid(3pm) β€” the vibe is unique, bestie πŸ’…

okay so real quick: this is a page from the User Contributed Perl Documentation, and it lives under the manual name Catman...x::uuid(3pm). It's ✨iconic✨, it's tiny, and it does exactly one thing. Let's get into it 🫢


✨ NAME ✨

Catmandu::Fix::uuid β€” it makes a Globally/Universally Unique Identifier πŸ’–

Like. A UUID. The long dashes-and-hex situation. And it's globally unique, meaning nobody else on planet earth is getting your string, no cap 🌍✨


🌸 SYNOPSIS 🌸

uuid(my.field) # my => {field => '4162F712-1DD2-11B2-B17E-C09EFE1DC403' }

so you just call uuid() on a field, and boom β€” that field gets a fresh UUID dropped into it πŸŽ€ In the example above, my.field comes back holding '4162F712-1DD2-11B2-B17E-C09EFE1DC403', and my is now:

my => {field => '4162F712-1DD2-11B2-B17E-C09EFE1DC403'}

one line of fix, one absolutely one-of-a-kind identifier. it's giving "main character energy" but for your data πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

  • Catmandu::Fix β€” the parent situation, the whole fix framework that uuid hangs out in. go say hi, iykyk πŸ’œ

and that's the whole page bestie, it's short but it ate πŸ“ no notes, no hidden flags, nothing extra to memorise. slay.

perl v5.36.0, dated 2023-02-09, straight from the Catman...x::uuid(3pm) manual β€” mwah πŸ’‹ see you in the next one 🌈⭐

πŸ“¦ where this page comes from