summaryrefslogtreecommitdiff
path: root/devel/p5-boolean/DESCR
blob: a75a2d4bb8dd725d5451b782127fd4110fe12d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Most programming languages have a native Boolean 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: true and false.