The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTML::Object::Number - Simple numeric values

SYNOPSIS

    use HTML::Object::Number;
    my $this = HTML::Object::Number->new || 
        die( HTML::Object::Number->error, "\n" );

VERSION

    v0.2.0

DESCRIPTION

This class holds simple numeric values. It does not support -0, +/- Infinity, or NaN, as the XPath spec says it should, but I am not hurting anyone I do not think.

METHODS

new

Provided with a number and this creates a new HTML::Object::Number object. Does some rudimentary numeric checking on the number to ensure it actually is a number.

as_xml

Returns a string representation of the current value as xml.

evaluate

Returns the current object.

getAttributes

Returns an empty hash object

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), its 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

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>

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 & 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.