Data::GUID::URLSafe - url-safe base64-encoded GUIDs
version 0.005
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.
use
my $string = $guid->as_base64_urlsafe;
This method returns the URL-safe base64 encoded representation of the GUID.
my $guid = Data::GUID->from_base64_urlsafe($string);
Ricardo SIGNES <rjbs@cpan.org>
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.
To install Data::GUID::URLSafe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::GUID::URLSafe
CPAN shell
perl -MCPAN -e shell install Data::GUID::URLSafe
For more information on module installation, please visit the detailed CPAN module installation guide.