Perl: the Markov chain saw | |
PerlMonks |
(Ovid) Re: Regex Learning Toolby Ovid (Cardinal) |
on Nov 23, 2000 at 02:23 UTC ( [id://43036]=note: print w/replies, xml ) | Need Help?? |
japhy, I like what this does, but it strikes me as similar to the English module: a nice idea that few, if any, use. However, it might be justifiable the way CGI.pm's HTML methods are: as a way of validating the syntax of the output.
For example, many people object to the following in a CGI program: Why don't I just use HTML with a here document or a template? In this case, the value of the CGI.pm HTML functions is apparent:
With your syntax, a person could more naturally write the following: And you could output /^[\w*]+$/ for the regex (assuming that you check for existence of overlapping metacharacters). This would help with regex syntax problems and could cut down on some of the more insidious logic problems that newbies (and Ovid) are prone to.
Cheers, Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In Section
Meditations
|
|