HTML::O...Boolean(3)

πŸ“¦ version 0.6.0, in alpine 3.24

🌸 HTML::O...Boolean(3) 🌸

okay bestie, so this is the manual page for HTML::Object::XPath::Boolean β€” the HTML::O...Boolean(3) page, from the User Contributed Perl Documentation section, and yes the title got truncated by the man page formatting, no that's not a typo, it's just how the pager does things πŸ’…


✨ NAME ✨

HTML::Object::XPath::Boolean β€” HTML Object. that's it, that's the name, short and iconic πŸŽ€

✨ SYNOPSIS ✨

here's the vibe, literally copy-paste this:

use HTML::Object::XPath::Boolean;
my $this = HTML::Object::XPath::Boolean->new || die( HTML::Object::XPath::Boolean->error, "\n" );

✨ VERSION ✨

v0.2.0

✨ DESCRIPTION ✨

so what does this module even do? it implements simple boolean true/false objects. that's the whole personality πŸ¦‹ true, false, done. no cap.

✨ METHODS ✨

cmp

this one is called for overloading the comparison operator, iykyk.

it takes another element, and returns true if the two elements are the same, or false otherwise. simple as that 🫢

getAttributes

returns an empty list in list context, and an empty array reference in scalar context. yes, context matters, always has, always will 😭

getChildNodes

same energy as the last one, fr fr: an empty list in list context, and an empty array reference in scalar context.

string_value

returns the current value as a literal ✨

to_boolean

returns the current object. that's it. it just hands you yourself back πŸ’€ (no seriously, the current object)

to_literal

returns "true" if it's true, or "false" otherwise β€” as a literal object πŸŽ€

to_number

returns the current value as a number object πŸ”₯

True

creates a new Boolean object with a true value. main character energy πŸ‘‘

HTML::Object::XPath::Boolean->True;

False

creates a new Boolean object with a false value. someone's gotta do it πŸ™ˆ

HTML::Object::XPath::Boolean->False;

value

returns true or false. that's the whole method. slay πŸ’…

✨ AUTHOR ✨

Jacques Deguest <jack@deguest.jp> β€” shoutout to the icon who wrote this 🌟

✨ SEE ALSO ✨

go read these next, bestie, they're all part of the same family:

  • HTML::Object::XPath
  • HTML::Object::XPath::Boolean
  • HTML::Object::XPath::Expr
  • HTML::Object::XPath::Function
  • HTML::Object::XPath::Literal
  • HTML::Object::XPath::LocationPath
  • HTML::Object::XPath::NodeSet
  • HTML::Object::XPath::Number
  • HTML::Object::XPath::Root
  • HTML::Object::XPath::Step
  • HTML::Object::XPath::Variable

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. 🧚


real talk for a sec: the license bit actually matters, so don't skip it β€” same terms as Perl itself, periodt.

and that's the page!! πŸ’– cute little sign-off for u: this was perl v5.42.2, dated 2026-02-15, and that's the whole HTML::O...Boolean(3) experience β€” go forth and boolean, bestie 🌈⭐

πŸ“¦ where this page comes from