=pod
=for comment
DO NOT EDIT. This Pod was generated by Swim v0.1.43.
See http://github.com/ingydotnet/swim-pm#readme
=encoding utf8
=head1 NAME
boolean - Boolean support for Perl
=for html
=head1 VERSION
This document describes L version B<0.46>.
=head1 SYNOPSIS
use boolean;
do &always if true;
do &never if false;
do &maybe if boolean($value)->isTrue;
and:
use boolean ':all';
$guess = int(rand(2)) % 2 ? true : false;
do &something if isTrue($guess);
do &something_else if isFalse($guess);
=head1 DESCRIPTION
Most programming languages have a native C data type. Perl does not.
Perl has a simple and well known Truth System. The following scalar values
are false:
$false1 = undef;
$false2 = 0;
$false3 = 0.0;
$false4 = '';
$false5 = '0';
Every other scalar value is true.
This module provides basic Boolean support, by defining two special objects:
C and C.
=head1 RATIONALE
When sharing data between programming languages, it is important to support
the same group of basic types. In Perlish programming languages, these types
include: Hash, Array, String, Number, Null and Boolean. Perl lacks native
Boolean support.
Data interchange modules like YAML and JSON can now C