Role::...bjectID(3pm)
β¨ Role::Commons::Authority β from the Role::...bjectID(3pm) era of the perl docs π
okay bestie, buckle up, this page is tiny but it's iconic πΈ
π« NAME
Role::Commons::Authority β it's literally just an object method that hands you a unique identifier. that's it. that's the whole job. no cap. π
π SYNOPSIS
here's the vibe, copied exactly because we do not touch the code:
use v5.14;
package Person 1.0 {
use Moo;
use Role::Commons -all;
has name => (is => 'ro');
};
my $bob1 = Person->new(name => "Bob");
my $bob2 = Person->new(name => "Bob");
say $bob1->object_id; # an identifier
say $bob2->object_id; # a different identifier
see how both Bobs are named "Bob" but the identifiers are different? that's the whole point, bestie. two identical-looking objects, two totally distinct IDs. the way that works is giving main character energy fr fr π
π¦ DESCRIPTION
so this is a tiny shim between Object::ID and Role::Commons β and since Role::Commons is the parent vibe, that means it shims into Moo::Role / Moose::Role too π«Ά
tiny. small. humble. does one thing and does it slay β¨
π BUGS
found a bug? not you being the main character of quality assurance π please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=Role-Commons>.
π SEE ALSO
Role::CommonsObject::ID
the whole fam π
π AUTHOR
Toby Inkster <tobyink@cpan.org>. legend behavior, honestly π
πΈ COPYRIGHT AND LICENCE
This software is copyright (c) 2012, 2014 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so go off, redistribute responsibly π
π§ DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
translation: no promises, no take-backs, no warranty bestie π it's giving "you get what you get" and honestly? respect.
and that's a wrap on Role::...bjectID(3pm), brought to you by perl v5.32.0, dated 2021-01-05 π
mwah, go write some objects with unique IDs, periodt β¨
π¦ where this page comes from
- debian bookworm: librole-commons-perl 0.104-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: librole-commons-perl 0.104-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librole-commons-perl 0.104-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms