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


Data-GUID-URLSafe documentation  | view source Contained in the Data-GUID-URLSafe distribution.

Index


NAME

Top

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

VERSION

Top

version 0.004

SYNOPSIS

Top

  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.)

METHODS

Top

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

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

Top

Ricardo SIGNES, <rjbs at cpan.org>

BUGS

Top

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-GUID-URLSafe. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Top


Data-GUID-URLSafe documentation  | view source Contained in the Data-GUID-URLSafe distribution.