On 1 Dec 2010, at 12:31, Paul Bennett wrote: > On the other hand, the docs for Data::Find read like something rather close > to what I'd need. > > Would there be community interest in a module that was API-identical to > Data::Find, except that it took XPath-like expressions instead of (or as well > as, in some way, maybe?) the search criteria that that module takes? > > Just struck me, while typing this out: Would I rather be better off trying to > add support for XPath-like expressions to Data::Find and submitting a patch? > Maybe some kind of Data::Find::Criteria:: namespace, objects of subclasses of > which (such as Data::Find::Criteria::XPath, > Data::Find::Criteria::Disgronifier, or whatever) could be fed as the search > criteria to Data::Find? There'd need to be some cleverness in the API of > those subclasses, but I reckon it's non-magical cleverness.
It occurred to me when I was writing Data::Find that xpath would be useful - so yes, absolutely - patches welcome, thanks :) It's on github: git://github.com/AndyA/Data--Find.git The easiest thing (for me :) is if you clone it on github and then issue a pull request when you're done. -- Andy Armstrong, Hexten