Léon Brocard > Data-UUID-Base64URLSafe-0.32 > Data::UUID::Base64URLSafe

Download:
Data-UUID-Base64URLSafe-0.32.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.32   Source   Latest Release: Data-UUID-Base64URLSafe-0.34

NAME ^

Data::UUID::Base64URLSafe - URL-safe UUIDs

SYNOPSIS ^

  use Data::UUID::Base64URLSafe;
  my $ug = Data::UUID::Base64URLSafe->new;
  my $uuid = $ug->create_b64_urlsafe;

DESCRIPTION ^

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.

METHODS ^

new

The constructor:

  my $ug = Data::UUID::Base64URLSafe->new;

create_b64_urlsafe

Create a URL-safe Base64-encoded UUID:

  my $uuid = $ug->create_b64_urlsafe;

AUTHOR ^

Leon Brocard, <acme@astray.com>

COPYRIGHT ^

Copyright (C) 2008, Leon Brocard

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.