SPVM::C...:String(3)
πΈ NAME πΈ
Okay bestie, this page is SPVM::C...:String(3) from the User Contributed Perl Documentation, and itβs all about SPVM::Comparator::String β the Interface Type for String Comparation Callback. Periodt. π
β¨ USAGE β¨
Hereβs the vibe, copied exactly so you can just use it, no cap:
use Comparator::String;
my $comparator = (Comparator::String)method : int ($a : string, $b : string); {
return $a cmp $b;
};
my $result = $comparator->(3, 5);
π DESCRIPTION π
Comparator::String is the interface type for the string comparation callback. Thatβs the whole main-character job, fr fr. π¦
π INTERFACE METHODS π
required method : int ($a : string, $b : string);
This method must receive two values whose types are string, and it returns the following value, bestie:
- If the first argument is greater than the second argument, returns
1. π₯ - If the first argument is lower than the second argument, returns
-1. π - If the first argument is equal to the second argument, returns
0. β¨
π COPYRIGHT & LICENSE π
- Copyright (c) 2023 Yuki Kimoto
- MIT License
okay thatβs the whole page, bestie β mwah π. Itβs running on perl v5.42.2, dated 2026-02-03, and yes the header title is the very truncated-looking SPVM::C...:String(3) π«Ά
π¦ where this page comes from
- alpine 3.24: spvm-doc 0.990125-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms