Clownfish::Boolean - Boolean type.
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"; }
There are only two singleton instances of this class: $true_singleton and $false_singleton which are exported on demand.
$true_singleton
$false_singleton
my $bool = Clownfish::Boolean->singleton($truth_value);
Return either $true_singleton or $false_singleton depending on the supplied value.
my $bool = $boolean->get_value();
Return the value of the Boolean.
my $result = $boolean->clone();
Return a clone of the object.
Clownfish::Boolean isa Clownfish::Obj.
To install Clownfish, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Clownfish
CPAN shell
perl -MCPAN -e shell install Clownfish
For more information on module installation, please visit the detailed CPAN module installation guide.