I also suspect your problem relates to permissions (the web server runs under a different user ID than you use at the command line). You might want to check out the recent thread on OLE from CGI. In particular the link to the MS knowledgebase article which says "don't do it".
In reply to Re: Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI
by grantm
in thread Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |