HTML::O...Boolean(3)

πŸ“¦ version 0.6.0, in alpine 3.24

🌸 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(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