NAME
Bool - Simple implementation of boolean
SYNOPSIS
use bool;
my $bool = Bool->new("True");
$bool->ttof(); #now $bool is False
if ($bool->isFalse()) {
print("Stuff\n");
} # print Stuff
$bool->ftot(); #now $bool is True
if ($bool->isTrue()) {
print("Stuff\n");
} # print Stuff
print($bool->value()); # print "True"
exit(0);
DESCRIPTION
This module gives you the methods needed to work with booleans.
METHODS
The methods are listed here:
isTrue() return 1 (true) if Bool object is True and nothing if it's False. isFalse() return 1 (true) if Bool object is False and nothing if it's True. value() return the value of a Bool object. ftot() change the value of a False Bool object to True. ttof() change the value of a True Bool object to False.
LICENSE
This module is released under the GNU GPL Version 3 or later.
AUTHOR
Sandro CAZZANIGA <cazzaniga.sandro@gmail.com>