1Clownfish::Boolean(3) User Contributed Perl DocumentationClownfish::Boolean(3)
2
3
4
6 Clownfish::Boolean - Boolean type.
7
9 use Clownfish::Boolean qw( $true_singleton $false_singleton );
10
11 my $bool = Clownfish::Boolean->singleton($truth_value);
12 my $truth_value = $bool->get_value;
13
14 if ($bool->equals($true_singleton)) {
15 print "true\n";
16 }
17
19 There are only two singleton instances of this class: $true_singleton
20 and $false_singleton which are exported on demand.
21
23 singleton
24 my $bool = Clownfish::Boolean->singleton($truth_value);
25
26 Return either $true_singleton or $false_singleton depending on the
27 supplied value.
28
30 get_value
31 my $bool = $boolean->get_value();
32
33 Return the value of the Boolean.
34
35 clone
36 my $result = $boolean->clone();
37
38 Return a clone of the object.
39
41 Clownfish::Boolean isa Clownfish::Obj.
42
43
44
45perl v5.32.1 2021-01-27 Clownfish::Boolean(3)