public
Description:
Homepage:
Clone URL: git://github.com/robertkrimen/Convert-AnyBase.git
commit  40c69cf46d5cf8a81f41a7f13bdc93e835d6ce27
tree    61172f6499705e57b0f0eb26a6b8b850beaf511a
parent  6d26648ea614ce0f235e9f172184519176411b82
README
NAME
    Convert::AnyBase - Encode/decode to and from an arbitrary base

VERSION
    Version 0.01

SYNOPSIS
        use Convert::AnyBase

        # A hex encoder/decoder
        my $hex = Convert::AnyBase->new( set => '0123456789abcdef', normalize => sub { lc } )
        $hex->encode( 10 )  # a
        $hex->encode( 100 ) # 64
        $hex->decode( 4d2 ) # 1234

        # A Crockford encoder/decoder (http://www.crockford.com/wrmg/base32.html)
        Convert::AnyBase->new( set => ( join '', 0 .. 9, 'a' .. 'h', 'j', 'k', 'm', 'n', 'p' .. 't', 'v', 'w', 'x', 'y', 
        'z' ),
            normalize => sub { s/[oO]/0/g; s/[iIlL]/1/g; lc }, # o, O => 0 / i, I, l, L => 1
        )

DESCRIPTION
    Convert::AnyBase is a tool for converting numbers to and from arbitrary
    symbol sets.

AUTHOR
    Robert Krimen, "<rkrimen at cpan.org>"

BUGS
    Please report any bugs or feature requests to "bug-convert-anybase at
    rt.cpan.org", or through the web interface at
    <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Convert-AnyBase>. I will
    be notified, and then you'll automatically be notified of progress on
    your bug as I make changes.

SUPPORT
    You can find documentation for this module with the perldoc command.

        perldoc Convert::AnyBase

    You can also look for information at:

    *   RT: CPAN's request tracker

        <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Convert-AnyBase>

    *   AnnoCPAN: Annotated CPAN documentation

        <http://annocpan.org/dist/Convert-AnyBase>

    *   CPAN Ratings

        <http://cpanratings.perl.org/d/Convert-AnyBase>

    *   Search CPAN

        <http://search.cpan.org/dist/Convert-AnyBase/>

ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
    Copyright 2009 Robert Krimen, all rights reserved.

    This program is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.