| Data-UUID-Base64URLSafe documentation | view source | Contained in the Data-UUID-Base64URLSafe distribution. |
Data::UUID::Base64URLSafe - URL-safe UUIDs
use Data::UUID::Base64URLSafe; my $ug = Data::UUID::Base64URLSafe->new; my $uuid = $ug->create_b64_urlsafe;
Data::UUID creates wonderful Globally/Universally Unique Identifiers (GUIDs/UUIDs). This module is a subclass of that module which adds a method to get a URL-safe Base64-encoded version of the UUID using MIME::Base64::URLSafe. What that means is that you can get a 22-character UUID string which you can use safely in URLs.
The constructor:
my $ug = Data::UUID::Base64URLSafe->new;
Create a URL-safe Base64-encoded UUID:
my $uuid = $ug->create_b64_urlsafe;
Creates a URL-safe Base64 encoded UUID with the namespace and data specified (See the Data::UUID docs on create_from_name
my $uuid2 = $ug−>create_from_name_b64_urlsafe(<namespace>, <name>);
Convert a binary UUID to a URL-safe Base64 encoded UUID
Convert a Base 64-encoded URL-safe UUID to its canonical binary representation
Leon Brocard, <acme@astray.com>
Copyright (C) 2008, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
| Data-UUID-Base64URLSafe documentation | view source | Contained in the Data-UUID-Base64URLSafe distribution. |