HTML::O...th::Root(3)
π NAME π
HTML::Object::XPath::Root β HTML Object. no cap, that's literally the whole name tag π
β¨ SYNOPSIS β¨
bestie, here's how you get one:
use HTML::Object::XPath::Root;
my $root = HTML::Object::XPath::Root->new ||
die( HTML::Object::XPath::Root->error, "\n" );
see how she dies with the error if new flops? iconic safety behaviour π«Ά
π¦ VERSION π¦
v0.2.0 β yes she has a version, she's a whole whole thing β¨
πΈ DESCRIPTION πΈ
okay so this module represents a root element, which is the top element. like the main character of the tree, the one everybody else answers to π the ceiling. the big boss. periodt.
π CONSTRUCTOR π
new
hand it a string and it hands you back a shiny new HTML::Object::XPath::Root object. that's it, that's the whole vibe π
π METHODS π
as_string
returns undef in scalar context, and an empty list in list context. she simply does not have a string form, and honestly? relatable π
as_xml
returns <Root/> β tiny, self-closing, adorable, no notes β
evaluate
you pass it a node set object, and it takes the first element in the node set, grabs its root node, and returns a new set with that node as its sole element. one node. solo. main character energy only π₯
new_nodeset
returns a new HTML::Object::XPath::NodeSet, passing it whatever argument you provided. it's giving "you get what you give" π§
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β ty king π
π SEE ALSO π
the whole friend group, fr fr:
HTML::Object::XPathHTML::Object::XPath::BooleanHTML::Object::XPath::ExprHTML::Object::XPath::FunctionHTML::Object::XPath::LiteralHTML::Object::XPath::LocationPathHTML::Object::XPath::NodeSetHTML::Object::XPath::NumberHTML::Object::XPath::RootHTML::Object::XPath::StepHTML::Object::XPath::Variable
(and yes, she's listed in her own SEE ALSO. self-love, we stan π )
π 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 bestie real talk β that's the actual license, don't go wild and pretend it says something else π same terms as Perl itself, that's the deal π«Ά
and that's the page! brought to you by User Contributed Perl Documentation, perl v5.42.2, dated 2026-02-15 β screenshot it, frame it, put it on the fridge πΈπβ¨
π¦ 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