A Perl implementation of TreePath, a library for XPath-like queries of any tree data structure.