NAME
UUID::Generator::PurePerl::Compat - Compatible interface to Data::UUID
SYNOPSIS
use UUID::Generator::PurePerl::Compat;
$ug = UUID::Generator::PurePerl::Compat->new();
$uuid1 = $ug->create();
$uuid2 = $ug->create_from_name(<namespace>, <name>);
$res = $ug->compare($uuid1, $uuid2);
$str = $ug->to_string( $uuid );
$uuid = $ug->from_string( $str );
DESCRIPTION
This class provides compatibility layer to Data::UUID.
If you want to know functionality of each method, Please refer to Data::UUID.
METHODS
Following methods and constants are implemented:
- $ug = CLASS->new()
- $ug->create()
- $ug->create_bin()
- $ug->create_hex()
- $ug->create_b64()
- $ug->create_from_name(<namespace>, <name>)
- $ug->create_from_name_bin(<namespace>, <name>)
- $ug->create_from_name_hex(<namespace>, <name>)
- $ug->create_from_name_b64(<namespace>, <name>)
- $ug->to_string(<uuid>)
- $ug->to_hexstring(<uuid>)
- $ug->to_b64string(<uuid>)
- $ug->from_string(<uuid_str>)
- $ug->from_hexstring(<uuid_str>)
- $ug->from_b64string(<uuid_str>)
- $ug->compare(<uuid1>, <uuid2>)
- NameSpace_DNS()
- NameSpace_URL()
- NameSpace_OID()
- NameSpace_X500()
NOTICE
As written in "NOTICE ABOUT PORTABILITY" in UUID::Object, binary and Base64 form of UUIDs generated by Data::UUID depend on endian of platform.
This module inherits that behavior of Data::UUID, so UUIDs generated with those methods, such like create_bin()
and create_from_name_b64()
, may not be compatible over machines.
SEE ALSO
Data::UUID, UUID::Generator::PurePerl.
AUTHOR
ITO Nobuaki <banb@cpan.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.