Catman...t_mode(3pm)
π Catman...t_mode(3pm) π
okay bestie, gather round, because this is a tiny little page from the User Contributed Perl Documentation section and it's genuinely so cute. it's a Perl module manual, it's giving "one job, done flawlessly" energy, and honestly? obsessed. β¨
β¨ NAME β¨
Catmandu::Fix::stat_mode β literally just here to calculate the mode of an array. that's it. that's the whole personality. and we love her for it. π
π¦ SYNOPSIS π¦
here's the vibe, bestie. you hand it foo, and it goes and finds the mode for you:
# Calculate the mode of foo. E.g. foo => [1,2,3,3,3,4]
stat_mode(foo) # foo => '3'
so like β in comes foo looking all [1,2,3,3,3,4], out comes '3', because 3 showed up three whole times and the others did not. main character behaviour fr fr. π
πΈ SEE ALSO πΈ
Catmandu::Fixβ the mothership, the whole ecosystem, go say hi π«Ά
ngl this page is short but she ate. every detail is here, no crumbs left behind. π
k byeeee, this has been Catman...t_mode(3pm) β brought to you by perl v5.36.0, dated 2023-02-06. slay, stay hydrated, go compute a mode. ππβ¨
π¦ where this page comes from
- debian bookworm: libcatmandu-stat-perl 0.13-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-stat-perl 0.13-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-stat-perl 0.13-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-stat-perl 0.13-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-stat-perl 0.13-2 Β· 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