in reply to Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI
Here is the Error I get:Let's see where it could come from:Can't call method "Content" on an undefined value at c:\scripts\sr.pl line 19.
Apparently, $doc is not defined. The Open must have failed. You don't check.my $doc = $word->Documents->Open("$oldfile"); my $search = $doc->Content->Find;
|
|---|