Folks, thanks for the brainstorming.

At the moment, it is named Text::RewriteRules and it is on CPAN.

It includes working code, misses examples and documentation.
It is a little more than mapping regular expressions to regular expressions. If you are interested in the idea, try this version, or wait for the next release (I hope to include examples and documentation very soon).


Kind regards,
Alberto

Mark Stosberg wrote:
On Sun, Dec 26, 2004 at 11:59:55AM +0100, Xavier Noria wrote:

I don't see clearly the usage or purpose of the module from that description.

The module seems to be a source filter. One that allows the user to map regular expressions from a given definition using rules. Those rules can be joined into a Perl function that can be called..., I am lost.

To get the picture. Can you give some usage example? Can you describe a situation where the module can be useful? From that summary I would expect kind of a wrapper of FILTER_ONLY regex => ... but then which is the role of that function of joined rules? When would it be constructed? Which code would use it?


I'm curious about how it works, too. You can already map REs to REs
using a simple hash. (I do it in Data::FormValidator).

I imagine your module must be doing something more complicated.

    Mark


-- Alberto Simões - Departamento de Informática - Universidade do Minho ,,__ .. .. / o._) .---. /--'/--\ \-'|| .----. .' '. / \_/ / | .' '..' '-. .'\ \__\ __.'.' .' ì-._ )\ | )\ | _.' // \\ // \\ ||_ \\|_ \\_ Perl Monger mrf '--' '--'' '--' www.perl-hackers.net

Reply via email to