XML::Li...::Number(3)
π NAME π
XML::LibXML::Number β it's giving simple numeric values, and honestly? That's the whole job description. No notes. β¨
πΈ DESCRIPTION πΈ
Okay so bestie, picture this: a whole class whose entire personality is holding a simple numeric value. That's it. That's the girl. π
Now, the XPath spec says she should support -0, +/- Infinity, and NaNβ¦ and she does not. Not -0, not +/- Infinity, not NaN. The spec said "do it" and she said "no <3". π But per the original author: he's not hurting anyone, he doesn't think. So like, we move. π«Ά
Heads up: this is a documented gap between what the XPath spec asks for and what this class actually does. It's real, it's known, and it's not getting fixed in this paragraph. π
π API π
β¨ new($num) β¨
Spins up a brand new XML::LibXML::Number object and tucks the value in $num inside it. π
It also does some rudimentary numeric checking on $num β like, just a quick vibe check to make sure it actually is a number before letting it in the club. π
π¦ value() π¦
Returns the numeric value she's been holding this whole time. π
Oh and also β this one moonlights as the overloaded stringification method. So when the object gets stringified, value() is who shows up. Main character energy, honestly. β
and that's the whole page, bestie π§ this little gem ships as part of perl v5.42.2, dated 2026-05-25, filed under the truncated header XML::Li...::Number(3) β yeah the header ran out of room, she's β¨mysteriousβ¨ like that. bye mwah π
π¦ where this page comes from
- fedora 43: perl-XML-LibXML 1:2.0213-1.fc43 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND MIT
- fedora 44: perl-XML-LibXML 1:2.0213-1.fc44 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms