XML::XPath::Number(3)
π XML::XPath::Number π
okay so bestie, this is XML::XPath::Number from the User Contributed Perl Documentation β it's a whole little class that just... holds numbers. that's it. that's the vibe. π
β¨ NAME β¨
XML::XPath::Number β Simple numeric values. π
πΈ DESCRIPTION πΈ
so this class holds simple numeric values, periodt. it's giving "just a lil number, chillin" π¦
but ngl, there's some stuff it does not support, and the XPath spec says it should: it doesn't do -0, it doesn't do +/- Infinity, and it doesn't do NaN. π the author is aware, and their whole take is, and I quote-ish, that they're not hurting anyone they don't think. π iconic honestly.
π API π
π new($num)
creates a new XML::XPath::Number object, with the value in $num. π«Ά
and yes, it does some rudimentary numeric checking on $num to make sure it actually is a number β vibe check on your input, basically. if you try to sneak a non-number in there, that's not gonna slay. β¨
π value()
also works as overloaded stringification β so when you stringify the object, this is what you get. it returns the numeric value held. π
π reminder bestie: no-0, no+/- Infinity, noNaN. the spec wanted them, this class said no. iykyk.
and that's the whole page, bestie β you ate that π
this was XML::XPath::Number(3) from perl v5.42.1, dated 2026-04-21. mwah, go forth and hold ur numbers π π β
π¦ where this page comes from
- fedora 44: perl-XML-XPath 1.49-1.fc44 Β· Artistic-2.0 AND (GPL-1.0-or-later OR Artistic-1.0-Perl)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms