Xavier Noria wrote:
On Dec 26, 2004, at 7:07 PM, Alberto Manuel Brandao Simoes wrote:

THe idea:

RULES foo
aa==>bb
cd==>ef
ENDRULES

and it creates the function foo which receives a string, and applies the rules while possible, rewritting the string.


Then, the purpose of the module is to construct and export that subroutine so that clients can apply it to their own strings? Or is it a source filter that rewrites the code according to a set of such rules passed as parameter?

The first :)

-- fxn


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

Reply via email to