docs::a...:String(3)
πΈ NAME πΈ
Okay so this is APR::String β the Perl API for manipulating APR UUIDs π
(yes bestie, that's what the page says, we're not questioning it, we're just reporting it β¨). It's under "User Contributed Perl Documentation," which is giving very "made by the community, for the community" energy fr fr π«Ά.
β¨ Synopsis β¨
Like, here's the whole vibe in one look:
use APR::String ();
# 42_000 => " 41K",
my $size_str = APR::String::format_size($size);
See that comment? 42_000 turns into " 41K" β iconic behaviour, no cap π
π¦ Description π¦
"APR::String" provides strings manipulation API. That's it, that's the whole description, short and sweet and honestly kind of a serve π.
π API π
"APR::String" provides the following functions and/or methods β yes, the singular "functions" era, we love a tiny API π:
β format_size
my $size_str = APR::String::format_size($size);
- arg1:
$size( integer ) β you hand it a number, that's the whole task, you're doing amazing sweetie π - ret:
$size_strβ returns a formatted size string representation of a number. The size given in the string will be in units of bytes, kilobytes, or megabytes, depending on the size. The length of that string is always 4 chars long. Always. Four. Characters. No exceptions, the aesthetic is locked in π
For example:
0 => " 0 ",
42 => " 42 ",
42_000 => " 41K",
42_000_000 => " 40M",
Look at those padded spaces β it's giving aligned columns, it's giving main character formatting energy β¨
- since:
2.0.00β vintage, but in a cool way π
π See Also π
mod_perl 2.0 documentation. Go read it, bestie, it's right there π
π Copyright π
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. Respect the license, it's literally the law π
π Authors π
The mod_perl development team and numerous contributors. Shoutout to the whole group chat of people who made this happen π«Άπ₯
That's the whole page, bestie β short, sweet, and every single detail is still here πβ¨
Signing off from perl v5.42.3, dated 2023-10-21, on the docs::a...:String(3) page β catch you in the next manpage π
π¦ where this page comes from
- nixos 26.05: mod_perl 2.0.13
- nixpkgs unstable: mod_perl 2.0.13
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms