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. πŸ’œ


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