Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I've been working on a XPath-like expression language for Perl data structures using Barrie Slaymaker's EventPath grammer which was based on James Clark's XPath grammer. I can now say /this/method::foo(/that)[@can="dance"] and get back any objects returned from the foo method of /this called with /that, and select those returned objects that can('dance'). Eventually I'll factor most of the code out and put it on CPAN as Data::DPath.

    After reading this journal entry, I thought you might find it interesting to take a look at Class::XPath [cpan.org] by Sam Tregar [perl.org] - This syntax for walking object trees has also been discussed previously on Perlmonks in this thread [perlmonks.org].