Tree::...e::Root(3pm)
π NAME π
Tree::XPathEngine::Root β the "take me home" of XPath expressions, aka going back to the root node inside an XPath expression. π β¨
This page lives in the Perl docs under the manual name Tree::...e::Root(3pm) (yes bestie, that's the whole vibe β a lil truncated, still iconic π
).
π METHODS π
πΈ new
Constructor. That's it, that's the whole entry β the docs just hand you new and let you live your life. No extra lore, no secret options. π«Ά
πΈ evaluate ($nodeset)
Bestie, this one returns a nodeset containing the root node of the first element of the nodeset. ππ¦
So you hand it a nodeset, it peeks at the first element in there, and walks alllll the way back up to the root. Main character energy: no matter how deep the plot goes, we're going back to where it all started. π
πΈ as_string
Also here! The docs list it, and that's genuinely all they say about it. π
πΈ as_xml
Dumps the action as XML, specifically as:
<Root/>
Literally just that. Self-closing. Minimalist. Ate. β¨
π Quick note:new,as_stringandas_xmlcome with no extra description in the original docs, so there's nothing more to spill β no cap, I'm not about to make stuff up.
Written and maintained by the Perl crew, this page shipped with perl v5.36.0 on 2022-11-20, and it's filed under Tree::...e::Root(3pm). Stay rooted, bestie. πππ±
π¦ where this page comes from
- debian bookworm: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtree-xpathengine-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms