SPVM::B...::String(3)

πŸ“¦ version 0.990125, in alpine 3.24

🌸 Name 🌸

Okay bestie, welcome to the SPVM::BlessedObject::String manual page β€” also filed under SPVM::B...::String(3) πŸ’… This one is all about an SPVM string. periodt ✨


πŸ¦‹ Description πŸ¦‹

The object of the SPVM::BlessedObject::String class holds an SPVM string. That's the whole vibe: it's an object, and inside it is an SPVM string πŸŽ€


✨ Usage ✨

Here's the group-chat cheat sheet:

my $string = $blessed_object_string->to_string;

my $binary = $blessed_object_string->to_bin;

πŸ’– Instance Methods πŸ’–

πŸŽ€ to_string πŸŽ€

my $string = $blessed_object_string->to_string;

Returns a string decoded to a Perl string using utf8::decode (the utf8 Perl doc on metacpan: https://metacpan.org/pod/utf8). If the decoding fails, an exception is thrown β€” like, it will not silently ghost you, bestie 😭πŸ”₯

🧚 to_bin 🧚

my $binary = $blessed_object_string->to_bin;

Returns a string as a binary. Slay, bytes behavior πŸ’…


🌈 Operators 🌈

Overloads the following operators β€” iconic behavior, no cap πŸ‘‘

⭐ bool ⭐

my $bool = !!$blessed_object_string;

Always true. Yup, always. The bool check is never gonna give you a false, bestie πŸ’–

πŸ¦‹ stringify πŸ¦‹

my $string = "$blessed_object_string";

The alias for to_string. Same energy, different entrance ✨


Copyright (c) 2023 Yuki Kimoto

MIT License


mwah πŸ’‹ that's the whole page! cooked with perl v5.42.2, dated 2026-02-03, and filed under SPVM::B...::String(3). bye bestie, go slay those SPVM strings 🫢✨

πŸ“¦ where this page comes from