Tree::...unction(3pm)
π Tree::XPathEngine::Function π
okay bestie, so this little icon is a Perl module β part of the User Contributed Perl Documentation β and its whole gig is evaluating XPath functions. that's it, that's the vibe. she takes XPath functions and she evaluates them. periodt. β¨
πΈ METHODS πΈ
new π±
it makes a new one. constructor behaviour, standard issue, no notes. π
evaluate π§
evaluate the function on a nodeset. yes queen, that's the entire job description. π«Ά
_execute βοΈ
evaluate the function on a nodeset. (yes, same energy as evaluate β the underscore is lowkey giving "internal, don't touch" but that's just how it's listed, iykyk.) π₯
as_string π
dump the function call as a string. textual glow-up, slay. β¨
as_xml π¦
dump the function call as xml. same but make it markup, iconic. π
XPath methods π
See the specs for details. (fr fr, the specs are the main character here β this page is just the guest list.)
here's the full roster of functions she handles, no skips, no cuts:
lastpositioncountidnamestringconcatstarts_withcontainssubstringsubstring_aftersubstring_beforestring_lengthnormalize_spacetranslatebooleannottruefalselangnumbersumfloorceilinground
like. the whole squad. ππ
reminder bestie: this page doesn't spell out what each function does β it literally says See the specs for details β so don't come for me, go read the specs. π
and that's a wrap on the Tree::XPathEngine::Function page, brought to you by perl v5.36.0, dated 2022-11-20, and lovingly shipped as part of the User Contributed Perl Documentation. go forth and evaluate, mwah π«Άπ
πΈ
π¦ 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