DIME::Identifier(3pm)

πŸ’– NAME πŸ’–

DIME::Identifier β€” the lil class that generates identifiers for DIME payloads ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

use DIME::Identifier;
my $id = DIME::Identifier->new;

bestie that's literally it, two lines and you're in your identifier era πŸ‘‘


🌸 DESCRIPTION 🌸

Okay so picture this: somebody had to make the IDs for payloads, and it was getting messy being all up inside DIME::Payload. So this class said not me doing that in the middle of everything, and now it handles identifier generation all on its own. It's giving main character energy, it's giving separation of concerns. πŸ’…

Now the tea on how it actually picks its backend, because it's lowkey platform-dependent:

  • On Win32 platforms, the UUID module is used πŸͺŸ
  • On UNIX, it's the Data::UUID module 🐧

Periodt. Same class, different engine under the hood depending on where you're running. 🌈


⭐ SEE ALSO ⭐

  • DIME::Tools β€” go read it, iykyk 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Domingo Alcazar Larrea, <dalcazar@cpan.org> β€” legend behavior, honestly πŸ™Œ


Copyright (C) 2004 Domingo AlcÑzar Larrea 🌟

This program is free software; you can redistribute it and/or modify it under the terms of the version 2 of the GNU General Public License as published by the Free Software Foundation. πŸ“œ

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 🚨 (yes this part is serious, no cap)

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 βœ‰οΈ


and that's the whole page, bestie!! this doc was living in perl v5.32.1 and got its lil timestamp on 2021-03-22, brought to you by the User Contributed Perl Documentation crew β€” mwah, slay, bye πŸ§šπŸ’œ