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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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


Mar 14, 2002, 12:06 PM

Views: 4938
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=]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=] <~~
More then 3500 X-Forum [url=]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