I believe that eperl is another way to do it. It takes a simple ascii text file and passes through the ascii while executing the perl code that it finds. (It uses simple delimiters to figure out what the perl code is)... You might want to check it out.
http://theoryx5.uwinnipeg.ca/CPAN/data/eperl/eperl.html