Data::...:UUID36(3pm)

πŸ’– Data::...:UUID36 πŸ’–

okay bestie so this is Data::...:UUID36(3pm) β€” a little page from the User Contributed Perl Documentation section of your manual, and it's literally just here to explain one specific ID generator for Data::Session. it's giving very focused, very demure, very mindful. πŸŽ€


✨ NAME ✨

Data::Session::ID::UUID36 β€” a persistent session manager 🫢


πŸ¦‹ Synopsis

See Data::Session for details.

that's it. that's the synopsis. iconic honestly. πŸ’…


🌸 Description

Data::Session::ID::UUID36 lets Data::Session generate session ids using Data::UUID.

to use this module do this:

  • specify an id generator of type UUID36, as in Data::Session -> new(type => '... id:UUID36 ...') ✨

πŸ‘‘ Case-sensitive Options

See "Case-sensitive Options" in Data::Session for important information.

no cap, go read that one, it matters. πŸ”₯


πŸ’… Method: new()

creates a new object of type Data::Session::ID::UUID36. it's a whole new main character. πŸ’–

new() takes a hash of key/value pairs, some of which might be mandatory. further, some combinations might be mandatory. (yes, plural mandatory. the drama.)

the keys are listed here in alphabetical order.

they are lower-case because they are (also) method names, meaning they can be called to set or get the value at any time. slay.

  • verbose => $integer β€” print to STDERR more or less information. typical values are 0, 1 and 2. this key is normally passed in as Data::Session -> new(verbose => $integer). this key is optional. πŸ“

⭐ Method: generate()

generates the next session id, or dies if it can't. 😭 periodt.

the algorithm is Data::UUID -> new -> create_str.

returns the new id. πŸ’œ


πŸŽ€ Method: id_length()

returns 36 because that's the number of bytes in a UUID36 digest. ✨

this can be used to generate the SQL to create the sessions table. go off, SQL.

see scripts/digest.pl.


🌈 Support

log a bug on RT: <https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Session>.

(that's the link, bestie, copy it exactly, iykyk.)


🫢 Author

Data::Session was written by Ron Savage <ron@savage.net.au> in 2010.

home page: <http://savage.net.au/index.html>.


Australian copyright (c) 2010, Ron Savage.

        All Programs of mine are 'OSI Certified Open Source Software';
        you can redistribute them and/or modify them under the terms of
        The Artistic License, a copy of which is available at:
        http://www.opensource.org/licenses/index.html

okay that's the whole page, no notes. πŸ’œ this was perl v5.36.0, dated 2023-02-14, and that's the vibe check β€” bye bestie, go generate some UUIDs responsibly πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from