logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Math::Base36 - Encoding and decoding of base36 strings

Author

       Rune Henssel <perl@henssel.dk>

Description

       This module converts to and from Base36 numbers (0..9 - A..Z)

       It was created because of an article/challenge in "The Perl Review"

Maintainer

       Brian Cassidy <bricas@cpan.org>

Methods

encode_base36($number,[$padlength])
       Accepts a unsigned int and returns a Base36 string representation of the number. optionally zero-padded
       to $padlength.

   decode_base36($b36)
       Accepts a base36 string and returns a Base10 string representation of the number.

Name

       Math::Base36 - Encoding and decoding of base36 strings

Synopsis

         use Math::Base36 ':all';

         $b36 = encode_base36( $number, $padlength );
         $number = decode_base36( $b36 );

See Also