in reply to Changing VB to Perl
If your problem is that you don't know how to write a perl script to run a word macro on a document, then the following article might help you.
http://www.windowsdevcenter.com/pub/a/windows/2005/03/22/word_macros.html