Check out this post on PerlMonks to read about the work I did today integrating XPath into a module I'm working on. I think this could be a useful technique for many situations.
One thing the resident Dahuts have long discussed is something we coined "PerlPath" - basically an XPath for perl data structures. I think it would be really cool to build an XSLT-like templating solution using PerlPath to specify the nodes of your data structure.
Strangely enough, I like XPath but I loathe XSLT! XPath seems to me to be a really elegent way of expressing complex tree traversals. XSLT on the other hand seems like a really complex way of expressing simple programming constructs (like, say, map).
PerlPath (Score:3, Interesting)
Reply to This
Re:PerlPath (Score:4, Interesting)
-sam
Reply to This
Parent
Nice (Score:2)
Hrm, nice. Think I'll borrow that. ;-)
--David