HTML::Object::Root - HTML Object
use HTML::Object::Root; my $root = HTML::Object::Root->new || die( HTML::Object::Root->error, "\n" );
v0.2.0
This module represent a Root element. It inherits fron HTML::Object::Document
Root
+-----------------------+ +------------------------+ +--------------------+ | HTML::Object::Element | --> | HTML::Object::Document | --> | HTML::Object::Root | +-----------------------+ +------------------------+ +--------------------+
This returns or sets the value of the current node.
For document, element or collection, this returns undef and for attribute, text or comment, this returns the objct value.
undef
See for more information
Provided with an element and this returns true if this element is a Root element, or false otherwise.
Returns a new empty array object
Returns the value returned by "root"
Returns undef if scalar context and an empty list in list context.
Returns the current object since there is no higher element than itself.
Returns 0, i.e. false.
0
Returns 1, i.e. true.
1
Returns a new array object with the current object as its sole element.
Returns the element object representing the actual root element.
Jacques Deguest <jack@deguest.jp>
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.
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.