Changes from previous:
----------------------
version: 0.28
date: Mon Sep 12 13:51:47 CEST 2011
changes:
- Added -truth option.
- This idea was inspired by https://rt.cpan.org/Ticket/Display.html?id=65536
- Awesome idea!
- Released from Liz++&Wendy++ downstairs bathroom
* Switch to Module::Package at YAPC 2011 ++
Changes 0.26:
* Fixed doc bug reported by KENTNL++
* Tweaked Makefile.PL
Changes 0.25:
* Fixed a bug caused by Readonly::XS (schwern++)
* Removed the new methods and autobox methods.
They didn't add much except confusion.
* Documented that you can use isTrue and isFalse as methods.
* '&boolean(1,2,3) now dies like boolean(1,2,3)'
* '&boolean() now dies like boolean()'
Changes 0.24:
* '@Schwern++ found out how to make true and false immutable.
Kudos to #strategicdata++.'
* Document the boolean() function.
* Added is_true and is_false methods.
* Added boolean, is_true, and is_false autobox methods
to trigger/signal a rebuild for the transition 5.10.1 -> 5.12.1.
The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=..."), minus the packages updated after
the perl package update.
sno@ was right after all, obache@ kindly asked and he@ led the
way. Thanks!
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.