blib/lib/Readonly/Values/Boolean.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Readonly::Values::Boolean;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Readonly::Enum;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Exporter qw(import);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 NAME
11  
12 Readonly::Values::Boolean - Boolean Constants
13  
14 =head1 VERSION
15  
16 Version 0.01
17  
18 =cut
19  
20 1 our $VERSION = '0.01';
21  
22 =head1 SYNOPSIS
23  
24 use Readonly::Values::Boolean;
25  
26 my $value = $Readonly::Values::Boolean::booleans{'false'};
27  
28 =cut
29  
30 1 Readonly::Enum our ($FALSE, $TRUE) => 0;
31  
32 1 Readonly::Hash our %booleans => (
33 'off' => $FALSE,
34 'false' => $FALSE,
35 'FALSE' => $FALSE,
36 'no' => $FALSE,
37 '0' => $FALSE,
38 'on' => $TRUE,
39 'true' => $TRUE,
40 'TRUE' => $TRUE,
41 'yes' => $TRUE,
42 '1' => $TRUE,
43 );
44  
45 1 our @EXPORT = qw(
46 $FALSE $TRUE
47 %booleans
48 );
49  
50 =head1 AUTHOR
51  
52 Nigel Horne, C<< <njh at nigelhorne.com> >>
53  
54 =head1 BUGS
55  
56 =head1 SEE ALSO
57  
58 =head1 SUPPORT
59  
60 This module is provided as-is without any warranty.
61  
62 Please report any bugs or feature requests to C<bug-readonly-values-booleans at rt.cpan.org>,
63 or through the web interface at
64 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Readonly-Values-Boolean>.
65 I will be notified, and then you'll
66 automatically be notified of progress on your bug as I make changes.
67  
68 You can find documentation for this module with the perldoc command.
69  
70 perldoc Readonly::Values::Boolean
71  
72 You can also look for information at:
73  
74 =over 4
75  
76 =item * MetaCPAN
77  
78 L<https://metacpan.org/dist/Readonly-Values-Boolean>
79  
80 =item * RT: CPAN's request tracker
81  
82 L<https://rt.cpan.org/NoAuth/Bugs.html?Dist=Readonly-Values-Boolean>
83  
84 =item * CPAN Testers' Matrix
85  
86 L<http://matrix.cpantesters.org/?dist=Readonly-Values-Boolean>
87  
88 =item * CPAN Testers Dependencies
89  
90 L<http://deps.cpantesters.org/?module=Readonly::Values::Boolean>
91  
92 =back
93  
94 =head1 LICENSE AND COPYRIGHT
95  
96 Copyright 2027 Nigel Horne.
97  
98 Usage is subject to licence terms.
99  
100 The licence terms of this software are as follows:
101  
102 =over 4
103  
104 =item * Personal single user, single computer use: GPL2
105  
106 =item * All other users (including Commercial, Charity, Educational, Government)
107 must apply in writing for a licence for use from Nigel Horne at the
108 above e-mail.
109  
110 =back
111  
112 =cut
113  
114 1 1;
↑ Summary