Data::...::Bool(3pm)
π Data::...::Bool β the manual page, but make it cute π
okay so bestie, welcome to the Data::...::Bool(3pm) page, straight out of the User Contributed Perl Documentation corner of the internet. it's literally a whole page about wrapping booleans and honestly?? obsessed. let's get into it π
β¨ NAME β¨
Data::Perl::Role::Bool β a wrapping class for boolean values. that's it, that's the whole vibe. she wraps booleans. π
πΈ VERSION πΈ
version 0.002011
(it's giving very specific. iykyk π )
π¦ SYNOPSIS π¦
here's the lil appetizer, copied exactly, no notes:
use Data::Perl qw/bool/;
my $bool = bool(0);
$bool->toggle; # 1
$bool->unset; # 0
see how she flips and un-flips?? main character energy fr fr πβ¨
π DESCRIPTION π
This class provides a wrapper and methods for interacting with boolean values. like, she's the lil cozy blanket around your 1s and 0s. that's the whole job. she ate. π
π PROVIDED METHODS π
β οΈ heads up bestie: None of these methods accept arguments. like, none. zero. don't even try to hand them a lil extra snack, they will not take it. π«π
new($value)β Constructs a newData::Perl::Collection::Boolobject initialized with the passed in value, and returns it. so you hand her a value, she hands back a whole fresh lil object. iconic. β¨setβ Sets the value to1and returns1. that's it. she said "true" and meant it. π―unsetβ Set the value to0and returns0. the total opposite mood, respectfully. πtoggleβ Toggles the value. If it's true, set to false, and vice versa. Returns the new value. she's a flip-flopper and we LOVE her for it π₯notβ Equivalent of'not $value'. the hater era, but make it a method. π
π SEE ALSO π
Data::PerlMooX::HandlesVia
go read those too, bestie, they're the extended universe π«Ά
π AUTHOR π
Matthew Phillips <mattp@cpan.org>
(the genius behind all this. we stan. β)
π 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.
so yeah!! that's the whole page, every single crumb of it, no cap π§ and a lil sign-off for you: this was perl v5.36.0, dated 2022-10-16, and it's the Data::...::Bool(3pm) page. go forth and toggle, bestie ππΈβ¨
π¦ 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