NAME

Devel::Ladybug::ID - Overloaded GUID object class

DESCRIPTION

Extends Devel::Ladybug::Scalar.

ID objects stringify as base64.

SYNOPSIS

use Devel::Ladybug::ID;

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

  # ...
};

#
# Instantiate from string:
#
do {
  my $id = Devel::Ladybug::ID->new("EO2JXisF3hGSSg+s3t/Aww==");

  ### Constructor also accepts non-base64:

  # my $id = Devel::Ladybug::ID->new(
  #   "EE887D28-3B80-11DF-BF59-00FF6073B66A"
  # );

  # ...
};

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

SEE ALSO

Devel::Ladybug::Serial, Data::GUID, Data::UUID

This file is part of Devel::Ladybug.