pkgsrc/devel/p5-boolean/DESCR
abs d99267d354 Added devel/p5-boolean version 0.20
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.
2009-02-13 23:40:27 +00:00

16 lines
386 B
Text

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.