1UNIVERSAL::Object::ID(3U)ser Contributed Perl DocumentatiUoNnIVERSAL::Object::ID(3)
2
3
4

NAME

6       UNIVERSAL::Object::ID - Supply a unique object identifier to every
7       object
8

SYNOPSIS

10           use DateTime;  # for example
11           use UNIVERSAL::Object::ID;
12
13           my $date = DateTime->now;
14
15           print $date->object_id;
16

DESCRIPTION

18       Loading UNIVERSAL::Object::ID makes the "Object::ID" role available to
19       every object.
20
21       Use at your own risk, polluting UNIVERSAL is not to be taken lightly.
22       The best place to use this module is in your own personal or internal
23       use code rather than a widely distributed software library.  Or you can
24       use Method::Lexical to safely apply the UNIVERSAL effect to just your
25       lexical scope.
26

SEE ALSO

28       Object::ID, Method::Lexical
29
30
31
32perl v5.32.1                      2021-01-27          UNIVERSAL::Object::ID(3)
Impressum