in reply to perl and ms office

You can help yourself, see perlintro and this collection of win32 tutorials/examples