Data::UUID::Base64URLSafe

acme on 2008-05-02T07:06:47

I've just released Data::UUID::Base64URLSafe:

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.

Of course, only afterwards do I notice Data::GUID::URLSafe. What is the point of a Globally/Universally Unique Identifier if we don't have a unique name for the concept, eh?


uuid/guid

rjbs on 2008-05-02T12:07:25

Yeah, there was a two-fold problem. One: Data::UUID is unclearly licensed, and the author has been unreachable, so far. Two: the Data::UUID interface is unpleasant (to me). So, rather than make Data::UUID::Licensed or Data::UUID::Simple or something, I just used the other (and more common in my experience, anyway) name. I tried to make some hubbub about this when I did so, but obviously I was not able to really make sure everyone saw Data::UUID get a thbbt.

Maybe I should change its abstract on the CPAN.

Re:uuid/guid

jesse on 2008-05-02T17:27:19

So, do rjbs' and acme's module generate the same urlsafe variant of a given UUID?

Re:uuid/guid

rjbs on 2008-05-02T17:49:21

Yes, both do:

$base64 =~ tr{+/=}{-_}d;