in reply to alternate markup for the 're' pragma

No there isn't. Although I've got plans for something that might make doing so easier.

What part are you interested in BTW, the program dump or the execution diagnostics?

---
$world=~s/war/peace/g

  • Comment on Re: alternate markup for the 're' pragma

Replies are listed 'Best First'.
Re^2: alternate markup for the 're' pragma
by grinder (Bishop) on Nov 12, 2006 at 20:55 UTC

    At different times, I'm interested in both aspects.

    If you're pondering some sort of semantic markup, you may as well go the whole hog and emit XML. That way it can be styled and/or munged as appropriate. Mmm, that would open a lot of possibilities, no more icky screen-scraping.

    I want it.

    • another intruder with the mooring in the heart of the Perl

      Humm, thats an interesting idea. Ive been ponderng ways to allow more programatic introspection of compiled regexps. I have to admit I hadn't thought of XML, but it does make a certain amount of sense as it would be pretty easy to emit, albeit verbose.

      I was thinking of some kind of script that walked the regex optree and converted to perl structures so it can interfaced with from perl easily, but I suppose spitting out XML is another option.

      Interesting. Hmm.

      ---
      $world=~s/war/peace/g

Re^2: alternate markup for the 're' pragma
by szabgab (Priest) on Nov 13, 2006 at 05:45 UTC
    Right now I am mainly interested in the progress of the execution. To stick with the above example, the part that starts with "Setting an EVAL". (output added to the original post)

      What would be really useful is if you could describe a hypthetical interface by which you would get whatever information you want to get. Write a little program assuming that the interface works however you like and show it to me. My problem is that I'm far too close to the forest so to speak: When I think about what interfaces could be provided I just get overwhelmed by the options. Give me an idea of an api that you would like to work with and I have something concrete to aim for.

      ---
      $world=~s/war/peace/g