Tree::...:Number(3pm)
π NAME π
Tree::XPathEngine::Number β literally just simple numeric values, bestie. That's the whole gig. β¨
π¦ DESCRIPTION π¦
okay so this class is a lil container that holds simple numeric values. that's it. that's the vibe. π
but ngl, there's some tea: it does not support -0, +/- Infinity, or NaN β even though the XPath spec says it should. lowkey a whole gap in the implementation π. the author's take tho? "I'm not hurting anyone I don't think." and honestly? valid. iconic energy. π
π API π
β¨ new($num) β¨
Makes you a fresh new Tree::XPathEngine::Number object, holding whatever value you put in $num. π«Ά
It also does some rudimentary numeric checking on $num first, just to make sure it's actually a number and you're not out here passing it nonsense. vibe check complete. π
β¨ value() β¨
Also known as the overloaded stringification. It hands back the numeric value it's holding. simple, clean, ate. π
β¨ Other Methods β¨
These ones exist purely so the objects can get properly processed in various contexts. they're the backstage crew fr fr π§
as_stringas_xmlvaluexpath_cmpevaluatexpath_to_booleanxpath_to_literalxpath_to_numberxpath_string_value
reminder bestie: no-0, no+/- Infinity, noNaN. if you need those, this is not the class for you, and that's just how it is. π
perl v5.36.0 Β· 2022-11-20 Β· User Contributed Perl Documentation
and that's the whole page, bestie!! πβ¨ this doc dropped on 2022-11-20, came from the User Contributed Perl Documentation crew, and was blessed by perl v5.36.0. slay, mwah, go forth and hold your numbers. ππ¦π
π¦ where this page comes from
- debian bookworm: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtree-xpathengine-perl 0.05-3 Β· 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