perl-Data-Bool - An interface to booleans as objects for Perl

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Data-Bool-2.98014-alt1.noarch.rpm
Package name perl-Data-Bool
Package version 2.98014
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 32.65 KB
Installed size 32.65 KB
Perl has no native representation for booleans.
Most of the time the Perl concept of truth is enough.
But when dealing with serialization of formats
which support booleans, it is desirable to keep the
booleans intact on round trips, eg. when writing after loading.
And there are other good reasons for that,
like strict validation via various mechanisms, like schemas,
OpenAPI, type hierarchies, etc.
A solution for that was adopted for JSON modules
around 2012 by using references to `1' or `0'
blessed into the JSON::PP::Boolean manpage which was chosen
as the canonical package for these objects.
The problem with that was the coupling with the JSON::PP manpage
for no apparent good reason. Booleans are independent
of JSON and this association makes little sense
when loading documents in formats like YAML, MessagePack, BSON, etc.
However, the integration of the concept of boolean
for all these applications is quite convenient.
Marc Lehmann's the Types::Serialiser manpage approached this problem
by creating a common interface used by the JSON::XS manpage and the CBOR::XS manpage
modules. This module lifts this core concept (including
idea, implementation and documentation) into an isolated treatment
for booleans only .e' so this may work as a common
ground for interoperability on booleans as objects for Perl modules.
The implementation keeps the compatibility with the
previous agreement on `JSON::PP::Boolean' by making
the `Data::Bool' implementation stash an alias for
That means
but also
This also allows the optimization of an isa test
to a direct comparison of stash pointers. That is,
ref Data::Bool::true eq Data::Bool::BOOL_PACKAGE
is equivalent to
ref Data::Bool::true eq 'JSON::PP::Boolean'


Package Version Architecture Repository
perl-Data-Bool - - -


Name Value
/usr/share/perl5 -
perl(Scalar/ -
perl( -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Data/ = 2.980.140
perl-Data-Bool = 2.98014-alt1


Type URL
Binary Package perl-Data-Bool-2.98014-alt1.noarch.rpm
Source Package perl-Data-Bool-2.98014-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Data-Bool rpm package:
    # sudo apt-get install perl-Data-Bool



See Also

Package Description
perl-Data-Bucketeer-0.003-alt1.noarch.rpm sort data into buckets based on threshholds
perl-Data-Bvec-1.01-alt1.noarch.rpm a module to manipulate integer arrays as bit vectors and
perl-Data-CGIForm-0.5-alt1.noarch.rpm Form Data Interface
perl-Data-CHEF-1.01-alt1.noarch.rpm perl module Data-CHEF
perl-Data-COW-0.02-alt1.noarch.rpm perl module Data-COW
perl-Data-CPAN-DSLIP-Explain-0.04-alt1.noarch.rpm "decrypts" CPAN module DSLIP code
perl-Data-CSel-0.121-alt1.noarch.rpm Select tree node objects using CSS Selector-like syntax
perl-Data-CSel-WrapStruct-0.004-alt1.noarch.rpm Wrap data structure into a tree of objects suitable for use with Data::CSel
perl-Data-CTable-1.01-alt1.noarch.rpm Read, write, manipulate tabular data
perl-Data-CTable-scripts-1.01-alt1.noarch.rpm Data-CTable scripts
perl-Data-Capture-0.27-alt1.noarch.rpm Perl6 Capture objects
perl-Data-Censor-0.03-alt1.noarch.rpm censor sensitive stuff in a data structure
perl-Data-Check-Structure-0.04-alt1.noarch.rpm Check structure of data
perl-Data-ChipsChallenge-1.0.0-alt1.noarch.rpm Perl interface to Chip's Challenge data files
perl-Data-Circular-Util-0.59-alt1.noarch.rpm Data utilities