1Data::Perl::Bool(3) User Contributed Perl Documentation Data::Perl::Bool(3)
2
3
4
6 Data::Perl::Bool - Wrapping class for boolean values.
7
9 version 0.002011
10
12 use Data::Perl qw/bool/;
13
14 my $bool = bool(0);
15
16 $bool->toggle; # 1
17
18 $bool->unset; # 0
19
21 This class is a simple consumer of the Data::Perl::Role::Bool role,
22 which provides all functionality. You probably want to look there
23 instead.
24
26 Matthew Phillips <mattp@cpan.org>
27
29 This software is copyright (c) 2020 by Matthew Phillips
30 <mattp@cpan.org>.
31
32 This is free software; you can redistribute it and/or modify it under
33 the same terms as the Perl 5 programming language system itself.
34
35
36
37perl v5.32.0 2020-07-28 Data::Perl::Bool(3)