HTML::O...Boolean(3)
πΈ NAME πΈ
Okay bestie, this is the manual page for HTML::Object::DOM::Boolean β the one and only HTML::O...Boolean(3) from the User Contributed Perl Documentation. It's giving tiny object wrapper for a boolean value, and honestly? Obsessed. π
HTML::Object::DOM::Booleanβ HTML Object DOM Boolean
β¨ SYNOPSIS β¨
Here's the vibe in code form, fr fr:
use HTML::Object::DOM::Boolean;
my $bool = HTML::Object::DOM::Boolean->new(1) ||
die( HTML::Object::DOM::Boolean->error, "\n" );
say $bool->toString;
say $bool->valueOf;
π¦ VERSION π¦
v0.2.0 β periodt. π
π DESCRIPTION π
This implements an object wrapper for a boolean value.
The value passed as the first parameter is converted to a boolean value, if necessary. If the value is omitted or is 0, -0, "undef", or the empty string (""), the object has an initial value of false (i.e. 0 in perl). π«Ά
All other values, including any object, an empty array ([]), or the string "false", create an object with an initial value of true (i.e. 1 in perl). Yes, bestie, the string "false" is lowkey in the true club β that's just the rule here. πβ¨
π METHODS π
π toString π
Returns a string of either "true" or "false" depending upon the value of the object.
π valueOf π
Returns the primitive value of the Boolean object, i.e. 0 for false, or 1 for true. That's the primitive value, periodt. π₯
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β main character energy, honestly. π
π₯ SEE ALSO π₯
Mozilla documentation <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean> β go read it, iykyk. π¦
π COPYRIGHT & LICENSE π
Copyright(c) 2021 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Slay. π
Later, bestie β the HTML::O...Boolean(3) page is from perl v5.42.2, dated 2026-02-15. π«Άβ¨
π¦ where this page comes from
- alpine 3.24: perl-html-object-doc 0.6.0-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms