Clownf...nteger(3pm)
π 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
- fedora 43: perl-Clownfish 0.8.0-1.fc43 Β· Apache-2.0
- fedora 44: perl-Clownfish 0.8.0-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms