Math::Base36(3pm)
π Math::Base36 β the manual page, but make it cute π
okay so bestie, you found the docs for Math::Base36, which lives in the User Contributed Perl Documentation section of the manual (that's the (3pm) part, iykyk). it does exactly one thing and it does it flawlessly: base36 strings, in and out. let's get into it π¦
β¨ NAME β¨
Math::Base36 β encoding and decoding of base36 strings. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
here's the look, the whole look:
use Math::Base36 ':all';
$b36 = encode_base36( $number, $padlength );
$number = decode_base36( $b36 );
yes, ':all'. yes, it just hands you the functions. iconic behavior, no notes. π«Ά
π DESCRIPTION π
this module converts to and from Base36 numbers, and the range is literally 0..9 - A..Z. so digits for the small stuff, letters for the big stuff. classic.
and the origin story?? it was created because of an article/challenge in "The Perl Review". not me getting emotional over a module's lore π main character energy fr fr.
π METHODS π
encode_base36( $number, [$padlength] )
accepts a unsigned int and hands back a Base36 string representation of that number. and if you feel like it, you can optionally zero-pad it out to $padlength. that's the optional one in the brackets, in case the syntax was being shy. β¨
decode_base36( $b36 )
takes a base36 string and returns a Base10 string representation of the number. give it letters, get back numbers. the glow-up is real. π
π AUTHOR π
Rune Henssel <perl@henssel.dk>
π§ MAINTAINER π§
Brian Cassidy <bricas@cpan.org>
π COPYRIGHT AND LICENSE π
Copyright 2002 by Rune Henssel
Copyright 2007-2015 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
legal bit, but make it sparkly: this is free software, bestie. redistribute it, modify it, go off β just keep it under the same terms as Perl itself. periodt. π
and that's the page, start to finish, no cap. this doc was set in type by perl v5.36.0, dated 2022-10-22, and honestly? she ate. π bye bestie, go encode something π
π¦ where this page comes from
- ubuntu noble: libmath-base36-perl 0.14-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmath-base36-perl 0.14-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmath-base36-perl 0.14-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms