HTML::O...:Number(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’– 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::Object
  • HTML::Object::Attribute
  • HTML::Object::Boolean
  • HTML::Object::Closing
  • HTML::Object::Collection
  • HTML::Object::Comment
  • HTML::Object::Declaration
  • HTML::Object::Document
  • HTML::Object::Element
  • HTML::Object::Exception
  • HTML::Object::Literal
  • HTML::Object::Number
  • HTML::Object::Root
  • HTML::Object::Space
  • HTML::Object::Text
  • HTML::Object::XQuery

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