NAME
Data::Sah::Format::perl::boolstr - Format boolean as yes/no, etc
VERSION
This document describes version 0.002 of Data::Sah::Format::perl::boolstr (from Perl distribution Data-Sah-Format-perl-boolstr), released on 2016-06-17.
DESCRIPTION
By default will format all values that are regarded as true by Perl with "yes", and all false values as "no". Undef will be left undef. The true string and false string can be set using the formatter arguments true_str
and false_str
, or you can choose from a set of predefined styles.
FORMATTER ARGUMENTS
true_str => str
false_str => str
style => str (default: yes_no)
Can be: yes_no, Y_N, true_false, T_F, 1_0, on_off.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Data-Sah-Format-perl-boolstr.
SOURCE
Source repository is at https://github.com/perlancar/perl-Data-Sah-Format-perl-boolstr.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah-Format-perl-boolstr
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.