Clownf...nteger(3pm)

πŸ“¦
version 0.8.0 Β· 3 versions
, in fedora 43, fedora 44

πŸ’– Clownf...nteger(3pm) πŸ’–

okay bestie, buckle up, we're doing Clownfish::Integer from the User Contributed Perl Documentation β€” it's a whole 3pm situation and honestly? she's iconic. no preamble needed, let's go πŸ¦‹


✨ NAME ✨

Clownfish::Integer β€” an immutable 64-bit signed integer. yeah. she does not change. she is who she is. main character energy fr fr πŸ’…


✨ SYNOPSIS ✨

my $integer = Clownfish::Integer->new(7);
my $value = $integer->get_value;

look at her. two lines. absolutely ate. πŸŽ€


✨ DESCRIPTION ✨

so like… there's genuinely nothing here in the original, and I'm not about to make stuff up (no cap, that would be lying to you and I would never 😭). it's giving mysterious. the void. the silence. she contains multitudes and also no paragraphs. periodt. πŸ’œ


✨ CONSTRUCTORS ✨

πŸŽ€ new

my $integer = Clownfish::Integer->new($value);

spawns you a brand new Integer. fresh out the box, no notes. ✨

  • value β€” the starting value. whatever number you hand her, that's who she becomes. πŸ“

✨ METHODS ✨

🌸 get_value

my $int = $integer->get_value();

hands you back the value of the Integer. that's it. that's the whole job. she's not complicated, she's just reliable. 🫢

🌈 to_f64

my $float = $integer->to_f64();

converts the Integer into floating point. she's changing genres. glow up moment. ✨

πŸ‘‘ compare_to

my $int = $integer->compare_to($other);

tells you whether one number is less than, equal to, or greater than another. it's giving ranking, it's giving who's that girl. πŸ’…

⚠️ real talk: this throws an exception if other is neither an Integer nor a Float. so don't be sending her random stuff, she WILL be dramatic about it. 😭

Returns: 0 if the numbers are equal, a negative number if self is less than other, and a positive number if self is greater than other. simple. elegant. slay. πŸ”₯

πŸ¦‹ clone

my $result = $integer->clone();

returns a clone of the object. twin. doppelgΓ€nger. copy paste but make it fashion. πŸ‘―β€β™€οΈ


✨ INHERITANCE ✨

Clownfish::Integer isa Clownfish::Obj. so yeah, she comes from good stock, the family tree is thriving, generational excellence honestly. πŸŒ³πŸ’–


and that's the whole page, bestie!! this lil doc was brought to you by perl v5.42.3, dated 2026-09-02, under the User Contributed Perl Documentation umbrella. mwah πŸ’‹ go forth and integer responsibly βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from