SPVM::C...:String(3)

πŸ“¦ version 0.990125, in alpine 3.24

🌸 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 (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