Clownf...oolean(3pm)
π Clownf...oolean(3pm) π
okay bestie, welcome to the Clownf...oolean(3pm) page β this is the User Contributed Perl Documentation, and we're about to talk about the most chaotic little class in the whole Clownfish universe: Clownfish::Boolean. yes it's literally just true and false. no it is not boring. sit down. π
β¨ NAME β¨
Clownfish::Boolean β Boolean type. that's it, that's the whole personality. π¦
πΈ SYNOPSIS πΈ
here's the vibe check in code form:
use Clownfish::Boolean qw( $true_singleton $false_singleton );
my $bool = Clownfish::Boolean->singleton($truth_value);
my $truth_value = $bool->get_value;
if ($bool->equals($true_singleton)) {
print "true\n";
}
see how clean that is?? no cap, iconic. π
π DESCRIPTION π
okay so here's the tea π« β there are only two singleton instances of this class, and they are:
$true_singleton$false_singleton
and they're exported on demand. that's right, you don't get a million boolean objects floating around being messy. you get exactly two. main character energy. π
π CONSTRUCTORS π
β¨ singleton β¨
my $bool = Clownfish::Boolean->singleton($truth_value);
hand it a value and it hands you back either $true_singleton or $false_singleton, depending on what you supplied. literally the easiest decision this class will ever make. π₯
π METHODS π
π get_value π
my $bool = $boolean->get_value();
returns the value of the Boolean. yes queen, just give us the truth. π
π¦ clone π¦
my $result = $boolean->clone();
returns a clone of the object. a little copy of itself, adorable, obsessed. π
π INHERITANCE π
Clownfish::Boolean isa Clownfish::Obj. family tree stays winning. πΈ
π reminder bestie:$true_singletonand$false_singletonare singletons β there are only two instances of this class, full stop. don't go trying to make more. π
and that's the whole page, fr fr π this was written up as perl v5.42.3 on 2026-09-02 β go slay your booleans, bestie πβ¨π¦
π¦ 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