NAME

OP::ID - Overloaded GUID object class

DESCRIPTION

Extends OP::Scalar and Data::GUID

ID objects stringify as base64, which makes them as small as practical.

SYNOPSIS

use OP::ID;

#
# Generate a new GUID
#
do {
  my $id = OP::ID->new();

  # ...
}

#
# Instantiate an existing GUID from base64
#
do {
  my $id = OP::ID->new("EO2JXisF3hGSSg+s3t/Aww==");

  # ...
}

You may also instantiate from and translate between string, hex, or binary GUID forms using the constructors inherited from Data::GUID.

See Data::GUID and Data::UUID for more details.

SEE ALSO

This file is part of OP.