NAME
OP::Bool - Overloaded object class for booleans
DESCRIPTION
Extends OP::Num.
SYNOPSIS
use OP::Bool;
my $bool = OP::Bool->new($condition ? OP::Bool::true : OP::Bool::false);
if ( $bool ) {
print "It's true!\n";
} else {
print "Clearly false.\n";
}
These methods are silly, but they exist.
if ( $bool->isTrue() ) {
print "That's affirmative\n";
}
if ( $bool->isFalse() ) {
print "Negative on that, Houston\n";
}
SEE ALSO
This file is part of OP.