String::Koremutake
Section: User Contributed Perl Documentation (3)
Updated: 2005-04-03
Index NAME
String::Koremutake - Convert to/from Koremutake Memorable Random Strings
SYNOPSIS
use String::Koremutake; my $k = String::Koremutake->new; my $s = $k->integer_to_koremutake(65535); # botretre my $i = $k->koremutake_to_integer('koremutake'); # 10610353957
DESCRIPTION
The String::Koremutake module converts to and from KoremutakeMemorable Random Strings.
The term ``Memorable Random String'' was thought up by Sean B. Palmer asa name for those strings like dopynl, glargen, glonknic, spoopwiddle,and kebble etc. that don't have any conventional sense, but can beused as random identifiers, especially in URIs to keep thempersistent. See http://infomesh.net/2001/07/MeRS/
Koremutake is a MeRS algorithm which is used by Shorl(http://shorl.com/koremutake.php). As they explain: ``It is, in plainlanguage, a way to express any large number as a sequence ofsyllables. The general idea is that word-sounding pieces ofinformation are a lot easier to remember than a sequence of digits.''
INTERFACE
new()
The
new() method is the constructor:
integer_to_koremutake($i)
The integer_to_koremutake method converts a positive integer to aKoremutake string:
my $s = $k->integer_to_koremutake(65535); # botretre
koremutake_to_integer($s)
The koremutake_to_integer method converts a Koremutake string to theinteger it represents:
my $i = $k->koremutake_to_integer('koremutake'); # 10610353957
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests to "bug-String-KoremutakeAATTrt.cpan.org", or through the web interface at<http://rt.cpan.org>.
AUTHOR
Leon Brocard
"acmeAATTastray.com" LICENCE AND COPYRIGHT
Copyright (c) 2005, Leon Brocard
"acmeAATTastray.com". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- INTERFACE
- new()
- integer_to_koremutake($i)
- koremutake_to_integer($s)
- BUGS AND LIMITATIONS
- AUTHOR
- LICENCE AND COPYRIGHT
This document was created byman2html,using the manual pages.