Tree::...ariable(3pm)
πΈ NAME πΈ
Tree::XPathEngine::Variable β bestie, it's literally a variable in a Tree::XPathEngine object π
So this lil page is part of the User Contributed Perl Documentation situation, and the module it's hyping up is Tree::...ariable (yes that's how the title bar shows it, she's shy, she truncates). Anyway. Sit down, grab a strawberry π, let's talk variables.
β¨ METHODS β¨
okay so REAL TALK first, because this trips everyone up: this class does NOT contain 1 instance of a variable. Not even one. The actual variable instance lives in the Tree::XPathEngine class, periodt. What this class does is hold the name of the var β that's it, that's the whole job β so the engine can go find it when it's evaluating the query. She's the name tag, not the person π
π new
makes a new one. iconic behaviour.
π¦ xpath_set_value
sets the value. (iykyk)
π xpath_get_value
this one is a synonym of get_value β same energy, different spelling, she contains multitudes β¨
π evaluate
evaluates. go off queen π
π as_string
dump the variable call in the XPath expression as a string. fr fr, that's the whole thing β she turns the variable call into string form.
πΈ as_xml
dump the variable call in the XPath expression as xml. same vibe as as_string but make it XML π
lowkey a tiny class but highkey essential β without the name-holder, the engine wouldn't know which variable to grab when it's out here evaluating queries. not me being emotionally attached to a Perl class π
the cute sign-off π
this little document came to you courtesy of the User Contributed Perl Documentation crew, running on perl v5.36.0, and dated 2022-11-20. she's been sitting here this whole time waiting for you to read her. and you did. slay π«Άπβ¨
Tree::...ariable(3pm) β that's a wrap, 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