Data::Perl::Bool(3pm)
π Data::Perl::Bool π
okay bestie, welcome to Data::Perl::Bool β it's a Wrapping class for boolean values. that's the whole vibe. it's giving tiny, it's giving useful, it's giving yes/no energy. this one lives in the User Contributed Perl Documentation corner of the manual, and honestly? she's cute. π
β¨ VERSION β¨
this is version 0.002011 β write it down, bestie, it matters. π
πΈ SYNOPSIS πΈ
here's the whole aesthetic in five lines:
use Data::Perl qw/bool/;
my $bool = bool(0);
$bool->toggle; # 1
$bool->unset; # 0
so you load it up, you birth a boolean with bool(0), you toggle it and boom 1, you unset it and boom 0. it's a glow-up and a glow-down, iconic behavior. π
π¦ DESCRIPTION π¦
okay so here's the tea, and I need you to really hear me on this one: this class is a simple consumer of the Data::Perl::Role::Bool role. that role is the one doing all the heavy lifting β every bit of functionality, all of it, comes from there. this class is basically the role's plus-one at the party. π
so if you actually want to know how stuff works, you probably want to go look at Data::Perl::Role::Bool instead. fr fr. that's where the real ones are. π«Ά
π AUTHOR π
Matthew Phillips <mattp@cpan.org> β the mastermind, the main character, the person we owe this whole thing to. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2020 by Matthew Phillips <mattp@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. free as in freedom, bestie β go forth, remix, redistribute, slay. π
lowkey important: those "same terms as the Perl 5 programming language system itself" are the rules, so read 'em before you go wild with it. π
and that's the page, bestie!! this was Data::Perl::Bool, documented under perl v5.36.0, dated 2022-10-16, filed as Data::Perl::Bool(3pm). mwah, go toggle something. πβ¨
π¦ where this page comes from
- ubuntu noble: libdata-perl-perl 0.002011-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdata-perl-perl 0.002011-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdata-perl-perl 0.002011-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms