CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [japhy] YAPE-Regex-Explain-1.01: Edit Log



yapp
User

Mar 14, 2002, 12:06 PM


Views: 3205
Re: [japhy] YAPE-Regex-Explain-1.01

Great tool! Smile Jasmine notified me about this module somewhere in the beginners forum.

I've been trying to make a CGI interface for this module. Hope that notifying at the page bottom that I use your module is good enough...

However, you might want to the following things:

A. bad explain - Try it yourself:
- goto [url=http://www.codingdomain.com/cgi-bin/frameset.cgi?url=perl/explainregexp.html]my YAPE::Regex::Explain interface
- enter "\Q at $0 line \E\d+\." in the textarea. (without the quotes)

The explainregexp.cgi uses that regexp to remove "at <file> line <x>" strings from an error message. My scripts validates the regex in a eval {m//} statement first, before your module is used.


B. Inheritance
Also, I've been trying to use inheritance at your explain module (to add a explainHTML() method). I wanted the result to be displayed in a more HTML way. The only sad thing is the fact that the $format variable is initialized from the explain() method. So when I copy-paste-adjust the code of the explain() method to my module, I can't get the explain() methods in the element classes working, since they require $format is initialized. Maybe adding a setFormat method is a nice feature.

All other things seam to work correctly. This is still a great job. I guess this will be useful to a lot of developers.

Yet Another Perl Programmer

_________________________________
~~> [url=http://www.codingdomain.com]www.codingdomain.com <~~
More then 3500 X-Forum [url=http://www.codingdomain.com/cgi-perl/downloads/x-forum]Downloads! Cool

(This post was edited by yapp on Mar 14, 2002, 12:16 PM)


Edit Log:
Post edited by yapp (User) on Mar 14, 2002, 12:08 PM
Post edited by yapp (User) on Mar 14, 2002, 12:09 PM
Post edited by yapp (User) on Mar 14, 2002, 12:15 PM
Post edited by yapp (User) on Mar 14, 2002, 12:16 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives