Tree::...ariable(3pm)

πŸ“¦
version 0.05 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

🌸 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