HTML::Object::XPath::Number - HTML Object XPath Number Class
use HTML::Object::XPath::Number; my $num = HTML::Object::XPath::Number->new || die( HTML::Object::XPath::Number->error, "\n" );
v0.2.0
This module holds simple numeric values. It doesn't support -0, +/- Infinity, or NaN, as the XPath spec says it should.
Provided with a number and this creates a new HTML::Object::XPath::Number object, with the value in number. Does some rudimentary numeric checking on number to ensure it actually is a number.
number
Returns a string representation of the number, or NaN is undefined.
NaN
Same as "as_string", but in xml format.
Returns the equivalent of perl's own "cmp" in perlop operation.
Returns the current object.
Returns an empty array reference in scalar context and an empty list in list context.
Returns a new HTML::Object::XPath::Literal object, passing it whatever arguments was provided.
Returns the value of the current object by calling "value"
Returns true if the current object has a true value, or false otherwise.
Returns a new HTML::Object::XPath::Litteral object of the stringification of the current object.
This returns the numeric value held. This is also the method used to return the value from strinfgification.
Jacques Deguest <jack@deguest.jp>
HTML::Object::XPath, HTML::Object::XPath::Boolean, HTML::Object::XPath::Expr, HTML::Object::XPath::Function, HTML::Object::XPath::Literal, HTML::Object::XPath::LocationPath, HTML::Object::XPath::NodeSet, HTML::Object::XPath::Number, HTML::Object::XPath::Root, HTML::Object::XPath::Step, HTML::Object::XPath::Variable
Copyright(c) 2021 DEGUEST Pte. Ltd.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Object
CPAN shell
perl -MCPAN -e shell install HTML::Object
For more information on module installation, please visit the detailed CPAN module installation guide.