http://www.perlmonks.org?node_id=76404


in reply to Idea for Perl Learning Tool

I don't know of any existing tools like this.

However, there is a really cool toolkit for doing regular expressions in the new ActiveState Komodo interface. You can type in a regexp and some text to match. It highlights what is currently being matched and explains what is going on in English. You can advance through each part of it and it shows what is getting stored in each of the variables $1, $2 etc.

This might at least help with one aspect of perl although a general tool might be a great learning aid as you mention.

Replies are listed 'Best First'.
Re: Re: Idea for Perl Learning Tool
by Chady (Priest) on Apr 29, 2001 at 00:51 UTC

    For RegEx explanation, japhy does a great job with that in his module.


    He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

    Chady | http://chady.net/
Re: Idea for Perl Learning Tool
by Dominus (Parson) on Apr 29, 2001 at 17:14 UTC
    Says dze27:

    <blocckquote> there is a really cool toolkit for doing regular expressions in the new ActiveState Komodo interface. Thanks! I am glad you liked that.

    --
    Mark Dominus
    Perl Paraphernalia

      Absolutely. The way you get the immediate feedback on what is being matched is extremely helpful. Thank *you*!

      I don't know if this is the place for it, but I was thinking it would be even better (feeping creaturism, here we go) if you could have a list of strings to be matched. So instead of entering just one, you could enter N strings, maybe 1 per line, and watch the regexp match them at the same time.

        Says dze27:
        I was thinking it would be even better (feeping creaturism, here we go) if you could have a list of strings to be matched. So instead of entering just one, you could enter N strings, maybe 1 per line, and watch the regexp match them at the same time.
        I agree, and this idea appears in my original notes for the regex debugger. I will be releasing the code for the back-end after I give my talk about it at TPC5, and I hope the result will be that several people implement free regex debuggers and that at least one of them has this feature.

        The paper is online, should you want to read it.

        --
        Mark Dominus
        Perl Paraphernalia