Role::Commons::ObjectID(3pm)

Role::Commons::ObjectID3pm

An object method providing a unique identifier

Usage

   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

Overview

This is a tiny shim between Object::ID and Role::Commons (and hence Moo::Role/Moose::Role too).

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9–10
  3. 11–12
  4. 13

Bugs

Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=Role-Commons>.

Author

Toby Inkster <[email protected]>.

From librole-commons-perl 0.104-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.