"This page shows a example of writing a emacs lisp function that process text on the current region, by calling a external perl script. So that you can use your existing knowledge in a scripting language for text processing as emacs commands..."
Read more »