NAME
BERT::Boolean - Boolean data type for BERT
SYNOPSIS
use BERT;
my $true = BERT::Boolean->true;
my $false = BERT::Boolean->false;
my $boolean = BERT::Boolean->new(1);
my $number = $boolean->value;
DESCRIPTION
This module is intended to be used with BERT to specify a boolean value. It is overloaded to act almost exactly like the numbers 1
and 0
.
See the BERT specification at http://bert-rpc.org/.
METHODS
- $boolean = BERT::Boolean->new($value)
-
Creates a new BERT::Boolean object initialized with $value as its boolean value.
- $string = $boolean->value
-
Returns either
1
or0
depending on the boolean interpretation of the argument passed tonew()
.
AUTHOR
Sherwin Daganato <sherwin@daganato.com>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.