HTML::O...Boolean(3)
πΈ 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::XPathHTML::Object::XPath::BooleanHTML::Object::XPath::ExprHTML::Object::XPath::FunctionHTML::Object::XPath::LiteralHTML::Object::XPath::LocationPathHTML::Object::XPath::NodeSetHTML::Object::XPath::NumberHTML::Object::XPath::RootHTML::Object::XPath::StepHTML::Object::XPath::Variable
β¨ 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. π§
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
- 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