in reply to Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI

Here is the Error I get:

Can't call method "Content" on an undefined value at c:\scripts\sr.pl line 19.

Let's see where it could come from:
my $doc = $word->Documents->Open("$oldfile"); my $search = $doc->Content->Find;
Apparently, $doc is not defined. The Open must have failed. You don't check.
  • Comment on Re: Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI
  • Download Code