The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::GUID::URLSafe - url-safe base64-encoded GUIDs

VERSION

version 0.008

SYNOPSIS

  use Data::GUID::URLSafe;

  my $guid = Data::GUID->new;

  my $string = $guid->as_base64_urlsafe;

  my $same_guid = Data::GUID->from_base64_urlsafe;

This module provides methods for Data::GUID that provide for URL-safe base64 encoded GUIDs, as described by MIME::Base64::URLSafe.

These strings are also safer for email addresses. While the forward slash is legal in email addresses, some broken email address validators reject it. (Also, without the trailing equals signs, these strings will be shorter.)

When Data::GUID::URLSafe is use'd, it installs methods into Data::GUID using Sub::Exporter.

PERL VERSION

This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.

METHODS

as_base64_urlsafe

  my $string = $guid->as_base64_urlsafe;

This method returns the URL-safe base64 encoded representation of the GUID.

from_base64_urlsafe

  my $guid = Data::GUID->from_base64_urlsafe($string);

AUTHOR

Ricardo SIGNES <cpan@semiotic.systems>

CONTRIBUTOR

Ricardo Signes <rjbs@semiotic.systems>

COPYRIGHT AND LICENSE

This software is copyright (c) 2007 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.