HTML::O...tionPath(3)
β¨ NAME β¨
okay bestie, welcome to HTML::O...tionPath(3) β the User Contributed Perl Documentation page for HTML::Object::XPath::LocationPath, aka the HTML Object XPath Location Path. it's giving XML location path energy, and we're keeping every detail. π
πΈ SYNOPSIS πΈ
bestie, here's the whole vibe in code form β copy it exactly:
use HTML::Object::XPath::LocationPath;
my $this = HTML::Object::XPath::LocationPath->new ||
die( HTML::Object::XPath::LocationPath->error, "\n" );
π VERSION π
the version is literally:
v0.2.0
π¦ DESCRIPTION π¦
This module represents a XML LocationPath. that's it, that's the description β short and iconic. π
π CONSTRUCTOR π
Takes no argument and returns a new array-based object. zero arguments, bestie β no cap. β¨
π METHODS π
okay, method time: each one has main character energy, but the facts are exactly the facts. π«Ά
π as_string π
For each element in the current object array, this calls as_string and concatenates those strings separated by /. It returns the result as a regular perl string. π
π as_xml π
Calls as_xml on each element in the current object array and returns the concatenated string enclosed in <LocationPath> and </LocationPath>. iconic wrapper behavior, honestly.
π¦ evaluate π¦
Provided with a context, this calls evaluate for each object in the stack. It returns a new HTML::Object::XPath::NodeSet object containing the result, with the context initially provided as the first one in the node set. π₯
π new_nodeset π
Returns a new HTML::Object::XPath::NodeSet, passing it whatever argument was provided. simple, slay.
π new_root π
Returns a new HTML::Object::XPath::Root, passing it whatever argument was provided. same energy, different class. β¨
β push β
Adds the elements provided to the object array. yes bestie, push them in. π
π§ set_root π§
Adds a new root object as the first element of our internal array. first place, main character. π
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β that's the author, bestie. π
π SEE ALSO π
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
π 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 byeee π
β this page is signed off with perl v5.42.2, dated 2026-02-15, and the footer stamp HTML::O...tionPath(3). periodt. π
π¦ 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