1Math::Base36(3) User Contributed Perl Documentation Math::Base36(3)
2
3
4
6 Math::Base36 - Encoding and decoding of base36 strings
7
9 use Math::Base36 ':all';
10
11 $b36 = encode_base36( $number, $padlength );
12 $number = decode_base36( $b36 );
13
15 This module converts to and from Base36 numbers (0..9 - A..Z)
16
17 It was created because of an article/challenge in "The Perl Review"
18
20 encode_base36( $number, [$padlength] )
21 Accepts a unsigned int and returns a Base36 string representation of
22 the number. optionally zero-padded to $padlength.
23
24 decode_base36( $b36 )
25 Accepts a base36 string and returns a Base10 string representation of
26 the number.
27
29 Rune Henssel <perl@henssel.dk>
30
32 Brian Cassidy <bricas@cpan.org>
33
35 Copyright 2002 by Rune Henssel
36
37 Copyright 2007-2015 by Brian Cassidy
38
39 This library is free software; you can redistribute it and/or modify it
40 under the same terms as Perl itself.
41
42
43
44perl v5.30.1 2020-01-30 Math::Base36(3)