Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

string::koremutake(3pm) [debian man page]

String::Koremutake(3pm) 				User Contributed Perl Documentation				   String::Koremutake(3pm)

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 Koremutake Memorable Random Strings. The term "Memorable Random String" was thought up by Sean B. Palmer as a name for those strings like dopynl, glargen, glonknic, spoopwid- dle, and kebble etc. that don't have any conventional sense, but can be used as random identifiers, especially in URIs to keep them persis- tent. 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 plain language, a way to express any large number as a sequence of syllables. The general idea is that word-sounding pieces of information 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 a Koremutake string: my $s = $k->integer_to_koremutake(65535); # botretre koremutake_to_integer($s) The koremutake_to_integer method converts a Koremutake string to the integer 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-Koremutake@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. AUTHOR
Leon Brocard "acme@astray.com" LICENCE AND COPYRIGHT
Copyright (c) 2005, Leon Brocard "acme@astray.com". All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.8 2006-03-18 String::Koremutake(3pm)

Check Out this Related Man Page

String::ToIdentifier::EN(3pm)				User Contributed Perl Documentation			     String::ToIdentifier::EN(3pm)

NAME
String::ToIdentifier::EN - Convert Strings to English Program Identifiers SYNOPSIS
use utf8; use String::ToIdentifier::EN 'to_identifier'; to_identifier 'foo-bar'; # fooDashBar to_identifier 'foo-bar', '_'; # foo_dash_bar to_identifier 'foo.bar', '_'; # foo_dot_bar to_identifier "foox{4EB0}bar"; # fooJingBar to_identifier "foox00bar"; # fooNullCharBar to_identifier "foox00x00bar"; # foo2NullCharsBar to_identifier "foox00x00bar", '_'; # foo_2_null_chars_bar { no utf8; to_identifier "fooxFFxFFbar.baz"; # foo_2_0xFF_BarDotBaz to_identifier "fooxFFxFFbar.baz", '_'; # foo_2_0xFF_bar_dot_baz } DESCRIPTION
This module provides a utility method, "to_identifier" for converting an arbitrary string into a readable representation using the ASCII subset of "w" for use as an identifier in a computer program. The intent is to make unique identifier names from which the content of the original string can be easily inferred by a human just by reading the identifier. If you need the full set of "w" including Unicode, see the subclass String::ToIdentifier::EN::Unicode. Currently, this process is one way only, and will likely remain this way. The default is to create camelCase identifiers, or you may pass in a separator char of your choice such as "_". Binary char groups will be separated by "_" even in camelCase identifiers to make them easier to read, e.g.: "foo_2_0xFF_Bar". EXPORT
Optionally exports the "to_identifier" function. SUBROUTINES
to_identifier Takes the string to be converted to an identifier, and optionally a separator char such as "_". If a separator char is not provided, a camelCase identifier will be returned. METHODS
string_to_identifier The class method version of "to_identifier", if you want to use the object oriented interface. SEE ALSO
String::ToIdentifier::EN::Unicode, Text::Unidecode, Lingua::EN::Inflect::Phrase AUTHOR
Rafael Kitover, "<rkitover@cpan.org>" BUGS
Please report any bugs or feature requests to "bug-string-toidentifier-en at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=String-ToIdentifier-EN <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=String-ToIdentifier- EN>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. REPOSITORY
http://github.com/rkitover/string-toidentifier-en <http://github.com/rkitover/string-toidentifier-en> SUPPORT
More information on this module is availableat: o RT: CPAN's request tracker (report bugs here) http://rt.cpan.org/NoAuth/Bugs.html?Dist=String-ToIdentifier-EN <http://rt.cpan.org/NoAuth/Bugs.html?Dist=String-ToIdentifier-EN> o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/String-ToIdentifier-EN <http://annocpan.org/dist/String-ToIdentifier-EN> o CPAN Ratings http://cpanratings.perl.org/d/String-ToIdentifier-EN <http://cpanratings.perl.org/d/String-ToIdentifier-EN> o MetaCPAN <https://metacpan.org/module/String::ToIdentifier::EN> o Search CPAN http://search.cpan.org/dist/String-ToIdentifier-EN/ <http://search.cpan.org/dist/String-ToIdentifier-EN/> LICENSE AND COPYRIGHT
Copyright (c) 2011 Rafael Kitover <rkitover@cpan.org>. This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License. See http://dev.perl.org/licenses/ for more information. perl v5.14.2 2012-02-27 String::ToIdentifier::EN(3pm)
Man Page