HTML::O...:Number(3)
π NAME π
HTML::Object::Number β simple numeric values, bestie. And yes, you're on the HTML::O...:Number(3) page from the User Contributed Perl Documentation. We love a little title-card moment. π
β¨ SYNOPSIS β¨
use HTML::Object::Number;
my $this = HTML::Object::Number->new ||
die( HTML::Object::Number->error, "\n" );
π VERSION π
v0.2.0 β that's the version, no cap.
π¦ DESCRIPTION π¦
This class holds simple numeric values. It does not support -0, +/- Infinity, or NaN, even though the XPath spec says it should. The original author's vibe is basically: βbut I am not hurting anyone I do not think.β π No extra behavior invented here, bestie.
πΈ METHODS πΈ
π
new
Provided with a number, and this creates a new HTML::Object::Number object. It does some rudimentary numeric checking on the number to make sure it actually is a number. Lowkey important.
π
as_xml
Returns a string representation of the current value as xml.
π
evaluate
Returns the current object.
π
getAttributes
Returns an empty hash object. Empty. Hash. Object. Slay.
π
getChildNodes
Returns an empty array object.
π
isEqualNode
Returns a boolean value which indicates whether or not two elements are of the same type and all their defining data points match.
Two elements are equal when they have the same type, defining characteristics (this would be their ID, number of children, and so forth), their attributes match, and so on. The specific set of data points that must match varies depending on the types of the elements.
See for more information: https://developer.mozilla.org/en-US/docs/Web/API/Node/isEqualNode
π
string_value
Returns the current value.
π
to_boolean
Returns the current value as a boolean object.
π
to_literal
Returns the current value as a literal object.
π
to_number
Returns the current object.
π
value
Also as overloaded stringification. Returns the numeric value held.
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β that's the author, bestie.
π SEE ALSO π
HTML::ObjectHTML::Object::AttributeHTML::Object::BooleanHTML::Object::ClosingHTML::Object::CollectionHTML::Object::CommentHTML::Object::DeclarationHTML::Object::DocumentHTML::Object::ElementHTML::Object::ExceptionHTML::Object::LiteralHTML::Object::NumberHTML::Object::RootHTML::Object::SpaceHTML::Object::TextHTML::Object::XQuery
π 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.
β¨ okay bye bestie β¨ β this page is from perl v5.42.2, dated 2026-02-15, and the footer says HTML::O...:Number(3). Mwah ππ«Ά
π¦ 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